types.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <iostream>
9 
10 #include <cstdlib>
11 #include <cstdio>
12 #include <stdarg.h>
13 #include <cstring>
14 #include <cassert>
15 // defien type : uintXX_t and intXX_t
16 #define __STDC_LIMIT_MACROS
17 // note in android include the macro of min max are overwitten
18 #include <cstdint>
19 // in case of android error ...
20 #ifdef __TARGET_OS__Android
21  #if __ANDROID_BOARD_ID__ <= 20
22  #ifndef __STDINT_LIMITS
23  #define INT8_MIN (-128)
24  #define INT8_MAX (127)
25  #define UINT8_MAX (255U)
26 
27  #define INT16_MIN (-32768)
28  #define INT16_MAX (32767)
29  #define UINT16_MAX (65535U)
30 
31  #define INT32_MIN (-2147483647-1)
32  #define INT32_MAX (2147483647)
33  #define UINT32_MAX (4294967295U)
34 
35  #define INT64_MIN (__INT64_C(-9223372036854775807)-1)
36  #define INT64_MAX (__INT64_C(9223372036854775807))
37  #define UINT64_MAX (__UINT64_C(18446744073709551615))
38  #endif
39  #endif
40 #endif
41 
42 #include <etk/stdTools.hpp>
43 
44 #ifndef ETK_BUILD_LINEARMATH
45  using btScalar = float;
47 #endif
48 
49 #ifndef _WIN32
50  #include <cmath>
51  #ifndef _MATH_H_MATHDEF
52  using float_t = float;
54  #endif
55 #endif
56 
float float_t
Generate a basic type for floating point unit selection (not finished)
Definition: types.hpp:53
float btScalar
If not using linear math from bullet lib, we need to define the basic element of a btScalar (float) ...
Definition: types.hpp:46