gint: provide short type definitions (i8, u8, etc.)

This commit is contained in:
Lephe 2024-05-25 17:54:53 +02:00
parent 5626713f40
commit 5b16888d9d
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -21,6 +21,20 @@
/* Fixed-width types for bit fields are quite meaningless */ /* Fixed-width types for bit fields are quite meaningless */
typedef unsigned int uint; typedef unsigned int uint;
//---
// Short types
//---
typedef unsigned int uint;
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;
//--- //---
// Structure elements // Structure elements
//---- //----