123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
-
-
-
-
- typedef uint8_t bool;
- typedef int8_t s8;
- typedef int16_t s16;
- typedef int32_t s32;
- typedef int64_t s64;
- typedef uint8_t u8;
- typedef uint16_t u16;
- typedef uint32_t u32;
- typedef uint64_t u64;
- typedef float f32;
- typedef double f64;
- typedef Vector4 quat;
- typedef Matrix Matrix4;
- typedef Matrix4 mat4;
- typedef Matrix3 mat3;
- typedef Vector2 vec2;
- typedef Vector3 vec3;
- typedef Vector4 vec4;
- typedef Vector2d vec2d;
- typedef Vector3d vec3d;
- typedef Vector4d vec4d;
- typedef Vector2i vec2i;
- typedef Vector3i vec3i;
- typedef Vector4i vec4i;
- typedef Vector2l vec2l;
- typedef Vector3l vec3l;
- typedef Vector4l vec4l;
- static inline type2 __attribute__((always_inline)) _
- static inline type2 __attribute__((always_inline)) _
- static inline type2 __attribute__((always_inline)) _
- static inline type2 __attribute__((always_inline)) _
- X(__VA_ARGS__ __VA_OPT__(,) int, int, a, a, a, a ) \
- X(__VA_ARGS__ __VA_OPT__(,) float, float, a, a, a, a ) \
- X(__VA_ARGS__ __VA_OPT__(,) long, long, a, a, a, a ) \
- X(__VA_ARGS__ __VA_OPT__(,) double, double, a, a, a, a ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec2, float, a.x, a.y, c, c ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec3, float, a.x, a.y, a.z, c ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec4, float, a.x, a.y, a.z, a.w) \
- X(__VA_ARGS__ __VA_OPT__(,) vec2d, double, a.x, a.y, c, c ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec3d, double, a.x, a.y, a.z, c ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec4d, double, a.x, a.y, a.z, a.w) \
- X(__VA_ARGS__ __VA_OPT__(,) vec2l, s64, a.x, a.y, c, c ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec3l, s64, a.x, a.y, a.z, c ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec4l, s64, a.x, a.y, a.z, a.w) \
- X(__VA_ARGS__ __VA_OPT__(,) vec2i, s32, a.x, a.y, c, c ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec3i, s32, a.x, a.y, a.z, c ) \
- X(__VA_ARGS__ __VA_OPT__(,) vec4i, s32, a.x, a.y, a.z, a.w)
- _VECTOR_GETTERS(_GETTER_FN)
-
- _VECTOR_GETTERS(_V_HELPER, b) \
- default: _float_getx \
- )(a, c)
- _VECTOR_GETTERS(_V_HELPER, b) \
- default: _int_getx \
- )(a, c)
- _VECTOR_GETTERS(_V_HELPER, b) \
- default: _long_getx \
- )(a, c)
- _VECTOR_GETTERS(_V_HELPER, b) \
- default: _double_getx \
- )(a, c)
|