1 #ifndef B3_PLATFORM_DEFINITIONS_H
2 #define B3_PLATFORM_DEFINITIONS_H
10 //#define b3ConstArray(a) const b3AlignedObjectArray<a>&
11 #define b3ConstArray(a) const a *
12 #define b3AtomicInc(a) ((*a)++)
14 inline int b3AtomicAdd(volatile int *p, int val)
17 int newValue = oldValue + val;
24 #define B3_STATIC static
26 //keep B3_LARGE_FLOAT*B3_LARGE_FLOAT < FLT_MAX
27 #define B3_LARGE_FLOAT 1e18f
28 #define B3_INFINITY 1e18f
30 #define b3ConstArray(a) __global const a *
31 #define b3AtomicInc atomic_inc
32 #define b3AtomicAdd atomic_add
34 #define b3Sqrt native_sqrt
35 #define b3Sin native_sin
36 #define b3Cos native_cos