authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2015-11-27 17:07:23-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2015-11-27 17:07:23-07:00
log3a1defa67b284f8f8be17477aa147db9044db15c
treed68b9f0b81871fb709fa36c5217b7242e4f55ede
parent024052b4483b13639e998ef34dc097a24860c612

figure out integers

After researching int_least8_t, int_fast8_t, and friends, it seems that rust's idea of only having fixed integer types is the way to go.

1 files changed, 3 insertions(+), 3 deletions(-)

README.md+3-3
...@@ -35,7 +35,6 @@ readable, safe, optimal, and concise code to solve any computing problem....@@ -35,7 +35,6 @@ readable, safe, optimal, and concise code to solve any computing problem.
35 * test framework to test for compile errors35 * test framework to test for compile errors
36 * Simple .so library36 * Simple .so library
37 * Multiple files37 * Multiple files
38 * figure out integers
39 * inline assembly and syscalls38 * inline assembly and syscalls
40 * running code at compile time39 * running code at compile time
41 * implement a simple game using SDL240 * implement a simple game using SDL2
...@@ -45,6 +44,7 @@ readable, safe, optimal, and concise code to solve any computing problem....@@ -45,6 +44,7 @@ readable, safe, optimal, and concise code to solve any computing problem.
4544
46zig | C equivalent | Description45zig | C equivalent | Description
47-------|--------------|-------------------------------46-------|--------------|-------------------------------
47 bool | bool | unsigned 1-bit integer
48 i8 | int8_t | signed 8-bit integer48 i8 | int8_t | signed 8-bit integer
49 u8 | uint8_t | unsigned 8-bit integer49 u8 | uint8_t | unsigned 8-bit integer
50 i16 | int16_t | signed 16-bit integer50 i16 | int16_t | signed 16-bit integer
...@@ -56,8 +56,8 @@ zig | C equivalent | Description...@@ -56,8 +56,8 @@ zig | C equivalent | Description
56 f32 | float | 32-bit IEE754 floating point56 f32 | float | 32-bit IEE754 floating point
57 f64 | double | 64-bit IEE754 floating point57 f64 | double | 64-bit IEE754 floating point
58 f128 | long double | 128-bit IEE754 floating point58 f128 | long double | 128-bit IEE754 floating point
59 isize | ssize_t | signed pointer sized integer59 isize | intptr_t | signed pointer sized integer
60 usize | size_t | unsigned pointer sized integer60 usize | uintptr_t | unsigned pointer sized integer
6161
62### Grammar62### Grammar
6363