-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfixes.h
More file actions
43 lines (37 loc) · 770 Bytes
/
Copy pathfixes.h
File metadata and controls
43 lines (37 loc) · 770 Bytes
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
35
36
37
38
39
40
41
42
43
#ifndef FIX_H
#define FIX_H
#include <math.h>
typedef int bool;
#define false 0
#define true 1
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
typedef int int32_t;
#ifdef _MSC_VER
typedef unsigned _int64 uint64_t;
typedef _int64 int64_t;
typedef _int64 int64;
#else
typedef unsigned long long uint64_t;
typedef long long int64_t;
typedef long long int64;
#endif
#ifndef INT64_MAX
#define INT64_MAX 0x7FFFFFFFFFFFFFFF
#endif
#ifndef UINT64_MAX
#define UINT64_MAX 0xFFFFFFFFFFFFFFFF
#endif
#ifndef INT32_MAX
#define INT32_MAX ((int32_t)0x7FFFFFFF)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX ((uint32_t)0xFFFFFFFF)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-INT32_MAX - 1L)
#endif
#ifndef INT64_MIN
#define INT64_MIN (-INT64_MAX - 1L)
#endif
#endif