aboutsummaryrefslogtreecommitdiff
path: root/src/std/types.h
blob: 6df9510e1eeba449bf963a94f201f6baf674f27c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

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

typedef ptrdiff_t size;
typedef char byte;
typedef uintptr_t uptr;
typedef int32_t i32;
typedef uint64_t u64;
typedef float f32;
typedef __m256i bytex32;

#define sizeof(x) (size)sizeof(x)
#define countof(a) (sizeof(a) / sizeof(*(a)))
#define lengthof(s) (countof(s) - 1)