comparison src/video/math_private.h @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents 2eed9997bd24
children 7a610f25c12f
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
18 #define _MATH_PRIVATE_H_ 18 #define _MATH_PRIVATE_H_
19 19
20 #include "SDL_endian.h" 20 #include "SDL_endian.h"
21 21
22 #define huge really_big /* huge is a reserved keyword in VC++ 6.0 */ 22 #define huge really_big /* huge is a reserved keyword in VC++ 6.0 */
23 #define int32_t math_int32_t 23 #define u_int32_t uint32_t
24 #define u_int32_t math_u_int32_t
25 typedef Sint32 math_int32_t;
26 typedef Uint32 math_u_int32_t;
27 24
28 /* The original fdlibm code used statements like: 25 /* The original fdlibm code used statements like:
29 n0 = ((*(int*)&one)>>29)^1; * index of high word * 26 n0 = ((*(int*)&one)>>29)^1; * index of high word *
30 ix0 = *(n0+(int*)&x); * high word of x * 27 ix0 = *(n0+(int*)&x); * high word of x *
31 ix1 = *((1-n0)+(int*)&x); * low word of x * 28 ix1 = *((1-n0)+(int*)&x); * low word of x *