Go to the documentation of this file.
12 #ifndef __ICETYPES_H__
13 #define __ICETYPES_H__
18 #if defined(__MACOSX__) || defined(__APPLE__)
22 #define true ((bool)-1)
24 #define false ((bool)0)
29 #define USE_HANDLE_MANAGER
32 #define PI 3.1415926535897932384626433832795028841971693993751f
33 #define HALFPI 1.57079632679489661923f
34 #define TWOPI 6.28318530717958647692f
35 #define INVPI 0.31830988618379067154f
37 #define RADTODEG 57.2957795130823208768f
38 #define DEGTORAD 0.01745329251994329577f
40 #define EXP 2.71828182845904523536f
41 #define INVLOG2 3.32192809488736234787f
42 #define LN2 0.693147180559945f
43 #define INVLN2 1.44269504089f
45 #define INV3 0.33333333333333333333f
46 #define INV6 0.16666666666666666666f
47 #define INV7 0.14285714285714285714f
48 #define INV9 0.11111111111111111111f
49 #define INV255 0.00392156862745098039f
51 #define SQRT2 1.41421356237f
52 #define INVSQRT2 0.707106781188f
54 #define SQRT3 1.73205080757f
55 #define INVSQRT3 0.577350269189f
82 #define DECLARE_ICE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name
85 #ifdef USE_HANDLE_MANAGER
92 #define INVALID_ID 0xffffffff
93 #ifdef USE_HANDLE_MANAGER
94 #define INVALID_KID 0xffffffff
96 #define INVALID_KID 0xffff
98 #define INVALID_NUMBER 0xDEADBEEF
118 #define MAX_SBYTE 0x7f
119 #define MIN_SBYTE 0x80
120 #define MAX_UBYTE 0xff
121 #define MIN_UBYTE 0x00
122 #define MAX_SWORD 0x7fff
123 #define MIN_SWORD 0x8000
124 #define MAX_UWORD 0xffff
125 #define MIN_UWORD 0x0000
126 #define MAX_SDWORD 0x7fffffff
127 #define MIN_SDWORD 0x80000000
128 #define MAX_UDWORD 0xffffffff
129 #define MIN_UDWORD 0x00000000
130 #define MAX_FLOAT FLT_MAX
131 #define MIN_FLOAT (-FLT_MAX)
132 #define IEEE_1_0 0x3f800000
133 #define IEEE_255_0 0x437f0000
134 #define IEEE_MAX_FLOAT 0x7f7fffff
135 #define IEEE_MIN_FLOAT 0xff7fffff
136 #define IEEE_UNDERFLOW_LIMIT 0x1a000000
138 #define ONE_OVER_RAND_MAX (1.0f / float(RAND_MAX))
146 #define MIN(a, b) ((a) < (b) ? (a) : (b))
147 #define MAX(a, b) ((a) > (b) ? (a) : (b))
148 #define MAXMAX(a,b,c) ((a) > (b) ? MAX (a,c) : MAX (b,c))
155 #define SQR(x) ((x)*(x))
156 #define CUBE(x) ((x)*(x)*(x))
162 #define QUADRAT(x) ((x)*(x))
165 # define srand48(x) srand((unsigned int) (x))
166 # define srandom(x) srand((unsigned int) (x))
167 # define random() ((double) rand())
168 # define drand48() ((double) (((double) rand()) / ((double) RAND_MAX)))
171 #endif // __ICETYPES_H__
bool(* ENUMERATION)(udword value, udword param, udword context)
ICE standard enumeration call.
udword DynID
Dynamic identifier.
unsigned int udword
sizeof(udword) must be 4
double float64
sizeof(float64) must be 4
int BOOL
Another boolean type.
udword RTYPE
Relationship-type (!) between owners and references.
float float32
sizeof(float32) must be 4
unsigned char ubyte
sizeof(ubyte) must be 1
signed char sbyte
sizeof(sbyte) must be 1
Union of a float and a sdword.
unsigned __int64 uqword
sizeof(uqword) must be 8
signed __int64 sqword
sizeof(sqword) must be 8
const inline_ T & TMax(const T &a, const T &b)
Union of a float and a udword.
inline_ void TSetMin(T &a, const T &b)
signed short sword
sizeof(sword) must be 2
ICE_COMPILE_TIME_ASSERT(sizeof(bool)==1)
int(__stdcall * PROC)()
A standard procedure call.
signed int sdword
sizeof(sdword) must be 4
inline_ void TSetMax(T &a, const T &b)
const inline_ T & TMin(const T &a, const T &b)
unsigned short uword
sizeof(uword) must be 2
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:03