aboutsummaryrefslogtreecommitdiffstats
path: root/include/types.h
blob: c83c9bdf2f1f7e64af80cce91f8f78b4b6fea44c (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
#ifndef T8_TYPES_H
#define T8_TYPES_H

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

typedef uint8_t  u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;

typedef int8_t  i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;

typedef float  f32;
typedef double f64;

typedef size_t usz;
typedef ptrdiff_t isz;

#if __SIZEOF_LONG_DOUBLE__ == 16
typedef long double f128;
#endif

typedef f64(*eqf_t)(f64*, usz, f64);

#endif