23 #ifndef __LIBRETRO_SDK_GFX_MATH_VECTOR_2_H__ 24 #define __LIBRETRO_SDK_GFX_MATH_VECTOR_2_H__ 36 #define vec2_dot(a, b) ((a[0] * b[0]) + (a[1] * b[1])) 38 #define vec2_cross(a, b) ((a[0]*b[1]) - (a[1]*b[0])) 40 #define vec2_add(dst, src) \ 44 #define vec2_subtract(dst, src) \ 48 #define vec2_copy(dst, src) \ 55 volatile float f = 1e10;
57 for(i = 0; i < 10; ++i)
74 s = (i >> 16) & 0x00008000;
75 e = ((i >> 23) & 0x000000ff) - (127 - 15);
83 m = (
m | 0x00800000) >> (1 - e);
91 if(e == 0xff - (127 - 15))
119 return (
int16_t)(
s | (e << 10) | (
m >> 13));
RETRO_BEGIN_DECLS typedef float vec2_t[2]
Definition: vector_2.h:34
#define INLINE
Definition: retro_inline.h:35
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
GLfloat f
Definition: glext.h:8207
static INLINE float overflow(void)
Definition: vector_2.h:52
GLdouble s
Definition: glext.h:6390
struct passwd out
Definition: missing_libc_functions.c:51
static INLINE unsigned int vec2_packHalf2x16(float vec0, float vec1)
Definition: vector_2.h:122
signed short int16_t
Definition: stdint.h:122
static INLINE int16_t tofloat16(float f)
Definition: vector_2.h:62
GLuint in
Definition: glext.h:10523
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
unsigned int uint32_t
Definition: stdint.h:126
const GLfloat * m
Definition: glext.h:11755