typesX86UNIX.h

Engine/source/platform/typesX86UNIX.h

More...

Public Defines

define
__EQUAL_CONST_F() (0.000001)
define
define
NULL() 0

Public Typedefs

unsigned int
dsize_t 
float
F32 
double
F64 
FileTime 
signed short
S16 
signed int
S32 
signed long long
S64 
signed char
S8 
const char *
StringTableEntry 
unsigned short
U16 
unsigned int
U32 
unsigned long long
U64 
unsigned char
U8 

Detailed Description

Public Defines

__EQUAL_CONST_F() (0.000001)
FN_CDECL() 
NULL() 0
PLATFORM_LITTLE_ENDIAN() 

Public Typedefs

typedef unsigned int dsize_t 
typedef float F32 
typedef double F64 
typedef S32 FileTime 
typedef signed short S16 
typedef signed int S32 
typedef signed long long S64 
typedef signed char S8 
typedef const char * StringTableEntry 
typedef unsigned short U16 
typedef unsigned int U32 
typedef unsigned long long U64 
typedef unsigned char U8 

Public Variables

const F32 F32_MAX 
const F32 F32_MIN 
const F32 Float_2Pi 
const F32 Float_Half 
const F32 Float_One 
const F32 Float_Pi 
const F32 Float_Zero 
const S16 S16_MAX 
const S16 S16_MIN 
const S32 S32_MAX 
const S32 S32_MIN 
const S8 S8_MAX 
const S8 S8_MIN 
const U16 U16_MAX 
const U32 U32_MAX 
const U8 U8_MAX 
 1
 2//-----------------------------------------------------------------------------
 3// Copyright (c) 2012 GarageGames, LLC
 4//
 5// Permission is hereby granted, free of charge, to any person obtaining a copy
 6// of this software and associated documentation files (the "Software"), to
 7// deal in the Software without restriction, including without limitation the
 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 9// sell copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21// IN THE SOFTWARE.
22//-----------------------------------------------------------------------------
23
24#ifndef _TYPESX86UNIX_H_
25#define _TYPESX86UNIX_H_
26
27/* eek. */
28#ifndef NULL
29#define NULL 0
30#endif
31
32#define PLATFORM_LITTLE_ENDIAN
33
34#define FN_CDECL
35
36typedef signed char        S8;
37typedef unsigned char      U8;
38
39typedef signed short       S16;
40typedef unsigned short     U16;
41
42typedef signed int         S32;
43typedef unsigned int       U32;
44
45typedef signed long long        S64;
46typedef unsigned long long      U64;
47
48typedef float              F32;
49typedef double             F64;
50
51typedef unsigned int dsize_t;
52
53typedef const char* StringTableEntry;
54
55typedef S32 FileTime;
56
57#define __EQUAL_CONST_F F32(0.000001)
58
59static const F32 Float_One  = F32(1.0);
60static const F32 Float_Half = F32(0.5);
61static const F32 Float_Zero = F32(0.0);
62static const F32 Float_Pi   = F32(3.14159265358979323846);
63static const F32 Float_2Pi  = F32(2.0 * 3.14159265358979323846);
64
65static const S8  S8_MIN  = S8(-128);
66static const S8  S8_MAX  = S8(127);
67static const U8  U8_MAX  = U8(255);
68
69static const S16 S16_MIN = S16(-32768);
70static const S16 S16_MAX = S16(32767);
71static const U16 U16_MAX = U16(65535);
72
73static const S32 S32_MIN = S32(-2147483647 - 1);
74static const S32 S32_MAX = S32(2147483647);
75static const U32 U32_MAX = U32(0xffffffff);
76
77static const F32 F32_MAX = F32(3.402823466e+38F);
78static const F32 F32_MIN = F32(1.175494351e-38F);
79
80
81#endif
82