Mercurial > sdl-ios-xcode
comparison src/video/math_private.h @ 1339:62802d9d7c87
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 10:40:14 +0000 |
parents | 450721ad5436 |
children | 2eed9997bd24 |
comparison
equal
deleted
inserted
replaced
1338:604d73db6802 | 1339:62802d9d7c87 |
---|---|
17 #ifndef _MATH_PRIVATE_H_ | 17 #ifndef _MATH_PRIVATE_H_ |
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 typedef Sint32 int32_t; | 22 #define int32_t math_int32_t |
23 typedef Uint32 u_int32_t; | 23 #define u_int32_t math_u_int32_t |
24 typedef Sint32 math_int32_t; | |
25 typedef Uint32 math_u_int32_t; | |
24 | 26 |
25 /* The original fdlibm code used statements like: | 27 /* The original fdlibm code used statements like: |
26 n0 = ((*(int*)&one)>>29)^1; * index of high word * | 28 n0 = ((*(int*)&one)>>29)^1; * index of high word * |
27 ix0 = *(n0+(int*)&x); * high word of x * | 29 ix0 = *(n0+(int*)&x); * high word of x * |
28 ix1 = *((1-n0)+(int*)&x); * low word of x * | 30 ix1 = *((1-n0)+(int*)&x); * low word of x * |