MP-Gadget  5.0.1.dev1-76bc7d4726-dirty
types.h
Go to the documentation of this file.
1 #ifndef __TYPES_H
2 #define __TYPES_H
3 
4 #include <stdint.h>
5 
6 /*Define some useful types*/
7 
8 typedef int32_t inttime_t;
9 
10 typedef uint64_t MyIDType;
11 
12 #ifndef LOW_PRECISION
13 #define LOW_PRECISION double
14 #endif
15 #ifndef HIGH_PRECISION
16 #define HIGH_PRECISION double
17 #endif
18 
21 
22 #define HAS(val, flag) ((flag & (val)) == (flag))
23 
24 #endif
#define LOW_PRECISION
Definition: types.h:13
int32_t inttime_t
Definition: types.h:8
uint64_t MyIDType
Definition: types.h:10
#define HIGH_PRECISION
Definition: types.h:16
LOW_PRECISION MyFloat
Definition: types.h:19
HIGH_PRECISION MyDouble
Definition: types.h:20