diff options
Diffstat (limited to 'include/types.h')
-rw-r--r-- | include/types.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h new file mode 100644 index 0000000..c83c9bd --- /dev/null +++ b/include/types.h @@ -0,0 +1,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 |