-
Notifications
You must be signed in to change notification settings - Fork 3
/
bamdtypes.h
executable file
·75 lines (60 loc) · 1.93 KB
/
bamdtypes.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
///////////////////////////////////////////////////////////////////////////////
// RTPS
// Copyright 1996-2013, Michael T. Mayers
// Provided under the MIT License (see LICENSE.txt)
///////////////////////////////////////////////////////////////////////////////
#pragma once
///////////////////////////////////////////////////////////////////////////
// bamdtypes.h
// COMMON BinaryArtsMeDia Types
// Michael T. Mayers
// Binary Arts, Inc
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// Common Defines
#define PI 3.14159265358979323846
#define PI2 6.2831853
#define NEGPI2 -6.2831853
#define DEG2RAD 0.017453293
#define RAD2DEG 57.29678
#ifndef NULL
#define NULL 0
#endif
#define ZERO 0
#define NO 0
#define YES 1
#define FALSE 0
#define TRUE 1
#define BAD 1
#define GOOD 0
#define PASS 0
#define FAIL 1
#define ERR 1
#define NOERR 0
///////////////////////////////////////////////////////////////////////////
// Common Types
#ifdef IRIX
typedef unsigned long long int U64;
typedef signed long long int S64;
#endif
#ifdef WIN32
typedef unsigned __int64 U64;
typedef signed __int64 S64;
#endif
typedef char UBOOL;
typedef unsigned long int U32;
typedef signed long int S32;
typedef unsigned short int U16;
typedef signed short int S16;
typedef unsigned char U8;
typedef signed char S8;
typedef float F32;
typedef double F64;
typedef float FLOAT;
typedef char * STRING;
typedef void * ADDRESS;
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
// metric conversion constants
#include "metric.h"
///////////////////////////////////////////////////////////////////////////////