MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
libgadget
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
19
typedef
LOW_PRECISION
MyFloat
;
20
typedef
HIGH_PRECISION
MyDouble
;
21
22
#define HAS(val, flag) ((flag & (val)) == (flag))
23
24
#endif
LOW_PRECISION
#define LOW_PRECISION
Definition:
types.h:13
inttime_t
int32_t inttime_t
Definition:
types.h:8
MyIDType
uint64_t MyIDType
Definition:
types.h:10
HIGH_PRECISION
#define HIGH_PRECISION
Definition:
types.h:16
MyFloat
LOW_PRECISION MyFloat
Definition:
types.h:19
MyDouble
HIGH_PRECISION MyDouble
Definition:
types.h:20
Generated by
1.9.1