-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefs.h
34 lines (27 loc) · 1.06 KB
/
Defs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
namespace FW
{
//------------------------------------------------------------------------
typedef unsigned char U8;
typedef unsigned short U16;
typedef unsigned int U32;
typedef signed char S8;
typedef signed short S16;
typedef signed int S32;
typedef float F32;
typedef double F64;
typedef void (*FuncPtr)(void);
//------------------------------------------------------------------------
#define FW_U32_MAX (0xFFFFFFFFu)
#define FW_S32_MIN (~0x7FFFFFFF)
#define FW_S32_MAX (0x7FFFFFFF)
#define FW_U64_MAX ((U64)(S64)-1)
#define FW_S64_MIN ((S64)-1 << 63)
#define FW_S64_MAX (~((S64)-1 << 63))
#define FW_F32_MIN (1.175494351e-38f)
#define FW_F32_MAX (3.402823466e+38f)
#define FW_F64_MIN (2.2250738585072014e-308)
#define FW_F64_MAX (1.7976931348623158e+308)
#define FW_PI (3.14159265358979323846f)
//------------------------------------------------------------------------
}