summaryrefslogtreecommitdiff
path: root/include/engine/types.h
blob: 181e24503372037d56e1ba1f0c5cc98456b528e2 (plain)
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
#ifndef ENGINE_TYPES_H
#define ENGINE_TYPES_H

#include <stdint.h>
#include <stdbool.h>

/* Signed */
typedef int8_t   i8;
typedef int16_t  i16;
typedef int32_t  i32;
typedef int64_t  i64;

/* Unsigned */
typedef uint8_t  u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;

/* floating points */
typedef float    f32;
typedef double   f64;

/* sizes */
#if __x86_64__ || __ppc64__ || _WIN64
typedef u64 usize;
typedef i64 isize;
#else
typedef u32 usize;
typedef i32 isize;
#endif

typedef bool(predicate_t)(const void*);

#endif