Go to the documentation of this file.
15 #ifndef PX_FOUNDATION_PX_SIMPLE_TYPES_H
16 #define PX_FOUNDATION_PX_SIMPLE_TYPES_H
31 #if defined (PX_WINDOWS) || defined(PX_WINMODERN) || defined (DOXYGEN) || defined(PX_XBOXONE)
41 typedef unsigned char PxU8;
46 #elif defined(PX_LINUX) || defined(PX_ANDROID)
47 typedef signed long long PxI64;
48 typedef signed int PxI32;
49 typedef signed short PxI16;
50 typedef signed char PxI8;
52 typedef unsigned long long PxU64;
53 typedef unsigned int PxU32;
54 typedef unsigned short PxU16;
55 typedef unsigned char PxU8;
60 #elif defined(PX_APPLE)
61 typedef signed long long PxI64;
62 typedef signed int PxI32;
63 typedef signed short PxI16;
64 typedef signed char PxI8;
66 typedef unsigned long long PxU64;
67 typedef unsigned int PxU32;
68 typedef unsigned short PxU16;
69 typedef unsigned char PxU8;
75 typedef signed long long PxI64;
76 typedef signed int PxI32;
77 typedef signed short PxI16;
78 typedef signed char PxI8;
80 typedef unsigned long long PxU64;
81 typedef unsigned int PxU32;
82 typedef unsigned short PxU16;
83 typedef unsigned char PxU8;
88 #elif defined(PX_PSP2)
89 typedef signed long long PxI64;
90 typedef signed int PxI32;
91 typedef signed short PxI16;
92 typedef signed char PxI8;
94 typedef unsigned long long PxU64;
95 typedef unsigned int PxU32;
96 typedef unsigned short PxU16;
97 typedef unsigned char PxU8;
100 typedef double PxF64;
102 #elif defined(PX_X360)
103 typedef signed __int64
PxI64;
104 typedef signed int PxI32;
105 typedef signed short PxI16;
106 typedef signed char PxI8;
108 typedef unsigned __int64
PxU64;
109 typedef unsigned int PxU32;
110 typedef unsigned short PxU16;
111 typedef unsigned char PxU8;
114 typedef double PxF64;
116 #elif defined(PX_WIIU)
117 typedef signed long long PxI64;
118 typedef signed int PxI32;
119 typedef signed short PxI16;
120 typedef signed char PxI8;
122 typedef unsigned long long PxU64;
123 typedef unsigned int PxU32;
124 typedef unsigned short PxU16;
125 typedef unsigned char PxU8;
128 typedef double PxF64;
130 #elif defined(PX_PS4)
131 typedef signed long long PxI64;
132 typedef signed int PxI32;
133 typedef signed short PxI16;
134 typedef signed char PxI8;
136 typedef unsigned long long PxU64;
137 typedef unsigned int PxU32;
138 typedef unsigned short PxU16;
139 typedef unsigned char PxU8;
142 typedef double PxF64;
145 #error Unknown platform!
159 #define PX_MAX_I8 127 //maximum possible sbyte value, 0x7f
160 #define PX_MIN_I8 (-128) //minimum possible sbyte value, 0x80
161 #define PX_MAX_U8 255U //maximum possible ubyte value, 0xff
162 #define PX_MIN_U8 0 //minimum possible ubyte value, 0x00
163 #define PX_MAX_I16 32767 //maximum possible sword value, 0x7fff
164 #define PX_MIN_I16 (-32768) //minimum possible sword value, 0x8000
165 #define PX_MAX_U16 65535U //maximum possible uword value, 0xffff
166 #define PX_MIN_U16 0 //minimum possible uword value, 0x0000
167 #define PX_MAX_I32 2147483647 //maximum possible sdword value, 0x7fffffff
168 #define PX_MIN_I32 (-2147483647 - 1) //minimum possible sdword value, 0x80000000
169 #define PX_MAX_U32 4294967295U //maximum possible udword value, 0xffffffff
170 #define PX_MIN_U32 0 //minimum possible udword value, 0x00000000
171 #define PX_MAX_F32 3.4028234663852885981170418348452e+38F
173 #define PX_MAX_F64 DBL_MAX //maximum possible double value
175 #define PX_EPS_F32 FLT_EPSILON //maximum relative error of float rounding
176 #define PX_EPS_F64 DBL_EPSILON //maximum relative error of double rounding
178 #ifndef PX_FOUNDATION_USE_F64
182 #define PX_MAX_REAL PX_MAX_F32
183 #define PX_EPS_REAL PX_EPS_F32
184 #define PX_NORMALIZATION_EPSILON PxReal(1e-20f)
190 #define PX_MAX_REAL PX_MAX_F64
191 #define PX_EPS_REAL PX_EPS_F64
192 #define PX_NORMALIZATION_EPSILON PxReal(1e-180)
201 #endif // PX_FOUNDATION_PX_SIMPLE_TYPES_H
Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com