Datatypes

To make our code more portable, we should use type specifiers as defined in datatype.h (see Table 13.1). The prefixes should go to the beginning of each instance/variable defined, such as in

     U16 u16_number;


Table 13.1: Conventions used for data types and prefixes.
Specifier Description Prefix
void void v
U8 unsigned char (1 byte) u8
I8 signed char (1 byte) i8
U16 unsigned int (2 bytes) u16
I16 signed int (2 bytes) i16
U32 unsigned int (4 bytes) u32
I32 signed int (4 bytes) i32
U64 unsigned int (8 bytes) u64
I64 signed int (8 bytes) i64
int int (2-4 bytes) i
F32 float (4 bytes) f32
F64 float (8 bytes) f64


Holger Fleckenstein 2008-07-08