diff options
| author | Ethan Werner <mail@ethanwerner.com> | 2026-10-10 20:55:33 +0000 |
|---|---|---|
| committer | Ethan Werner <mail@ethanwerner.com> | 2026-10-10 20:56:50 +0000 |
| commit | f8423ebea413605b42de23f5dd06c5479d3fa1dd (patch) | |
| tree | 2612a5eb026c59e7aae01f10a1cf62f2ee43042c /include/type.h | |
Diffstat (limited to 'include/type.h')
| -rw-r--r-- | include/type.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/type.h b/include/type.h new file mode 100644 index 0000000..1106832 --- /dev/null +++ b/include/type.h @@ -0,0 +1,24 @@ +// type.h - Common type aliases +// +// Used across header libraries to provide consistent, concise type names +// for fixed-width integers and floating point types. + +#ifndef TYPE_H +#define TYPE_H + +#include <stdint.h> + +typedef double f64; +typedef float f32; + +typedef int8_t i8; +typedef int16_t i16; +typedef int32_t i32; +typedef int64_t i64; + +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef uint64_t u64; + +#endif |