| ... | ... | @@ -93,30 +93,30 @@ make |
| 93 | 93 | |
| 94 | 94 | ## Primitive Numeric Types: |
| 95 | 95 | |
| 96 | | zig | C equivalent | Description |
| 97 | | -------------|---------------------|------------------------------- |
| 98 | | bool | bool | unsigned 1-bit integer |
| 99 | | i8 | int8_t | signed 8-bit integer |
| 100 | | u8 | uint8_t | unsigned 8-bit integer |
| 101 | | i16 | int16_t | signed 16-bit integer |
| 102 | | u16 | uint16_t | unsigned 16-bit integer |
| 103 | | i32 | int32_t | signed 32-bit integer |
| 104 | | u32 | uint32_t | unsigned 32-bit integer |
| 105 | | i64 | int64_t | signed 64-bit integer |
| 106 | | u64 | uint64_t | unsigned 64-bit integer |
| 107 | | f32 | float | 32-bit IEE754 floating point |
| 108 | | f64 | double | 64-bit IEE754 floating point |
| 109 | | f128 | long double | 128-bit IEE754 floating point |
| 110 | | isize | intptr_t | signed pointer sized integer |
| 111 | | usize | uintptr_t | unsigned pointer sized integer |
| 112 | | c_short | short | for API compatibility with C |
| 113 | | c_ushort | unsigned short | for API compatibility with C |
| 114 | | c_int | int | for API compatibility with C |
| 115 | | c_uint | unsigned int | for API compatibility with C |
| 116 | | c_long | long | for API compatibility with C |
| 117 | | c_ulong | unsigned long | for API compatibility with C |
| 118 | | c_longlong | long long | for API compatibility with C |
| 119 | | c_ulonglong | unsigned long long | for API compatibility with C |
| 96 | zig | C equivalent | Description |
| 97 | -------------|------------------------|------------------------------- |
| 98 | bool | bool | unsigned 1-bit integer |
| 99 | i8 | signed char, int8_t | signed 8-bit integer |
| 100 | u8 | unsigned char, uint8_t | unsigned 8-bit integer |
| 101 | i16 | int16_t | signed 16-bit integer |
| 102 | u16 | uint16_t | unsigned 16-bit integer |
| 103 | i32 | int32_t | signed 32-bit integer |
| 104 | u32 | uint32_t | unsigned 32-bit integer |
| 105 | i64 | int64_t | signed 64-bit integer |
| 106 | u64 | uint64_t | unsigned 64-bit integer |
| 107 | f32 | float | 32-bit IEE754 floating point |
| 108 | f64 | double | 64-bit IEE754 floating point |
| 109 | f128 | long double | 128-bit IEE754 floating point |
| 110 | isize | intptr_t | signed pointer sized integer |
| 111 | usize | uintptr_t | unsigned pointer sized integer |
| 112 | c_short | short | for API compatibility with C |
| 113 | c_ushort | unsigned short | for API compatibility with C |
| 114 | c_int | int | for API compatibility with C |
| 115 | c_uint | unsigned int | for API compatibility with C |
| 116 | c_long | long | for API compatibility with C |
| 117 | c_ulong | unsigned long | for API compatibility with C |
| 118 | c_longlong | long long | for API compatibility with C |
| 119 | c_ulonglong | unsigned long long | for API compatibility with C |
| 120 | 120 | |
| 121 | 121 | ## Grammar |
| 122 | 122 | |