-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypes.h
More file actions
29 lines (24 loc) · 760 Bytes
/
Types.h
File metadata and controls
29 lines (24 loc) · 760 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
#ifndef TYPES_H
#define TYPES_H
#define _CRT_SECURE_NO_WARNINGS
// ******************************************************************
// * Caustik's favorite typedefs
// ******************************************************************
typedef signed int sint;
typedef unsigned int uint;
typedef char int08;
typedef short int16;
typedef long int32;
typedef unsigned char uint08;
typedef unsigned short uint16;
typedef unsigned long uint32;
typedef signed char sint08;
typedef signed short sint16;
typedef signed long sint32;
inline static uint32 RoundUp(uint32 Value, uint32 Mult)
{
if(Mult == 0)
return Value;
return Value - (Value - 1)%Mult + (Mult - 1);
}
#endif