aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootstrap/shorthand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap/shorthand.h')
-rwxr-xr-xsrc/bootstrap/shorthand.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/bootstrap/shorthand.h b/src/bootstrap/shorthand.h
deleted file mode 100755
index 6fcb82c..0000000
--- a/src/bootstrap/shorthand.h
+++ /dev/null
@@ -1,37 +0,0 @@
1#ifndef SHORTHAND_H
2#define SHORTHAND_H
3
4#include <assert.h>
5#include <stdbool.h>
6#include <stddef.h>
7#include <stdint.h>
8
9//
10// This simple header just typedefs the basic C define types to a shorter name,
11// loads the quality of life bool macro for _Bool and defines shorthand macros
12// for byte sizes.
13//
14
15typedef uint8_t u8;
16typedef uint16_t u16;
17typedef uint32_t u32;
18typedef uint64_t u64;
19typedef int8_t s8;
20typedef int16_t s16;
21typedef int32_t s32;
22typedef int64_t s64;
23typedef volatile u8 vu8;
24typedef volatile u16 vu16;
25typedef volatile u32 vu32;
26typedef volatile u64 vu64;
27typedef volatile s8 vs8;
28typedef volatile s16 vs16;
29typedef volatile s32 vs32;
30typedef volatile s64 vs64;
31
32#define KB(N) ((u64)(N) * 1024)
33#define MB(N) ((u64)KB(N) * 1024)
34#define GB(N) ((u64)MB(N) * 1024)
35#define TB(N) ((u64)GB(N) * 1024)
36
37#endif // SHORTHAND_H