aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-12-09 12:32:26 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-12-09 12:32:26 -0700
commit367ea908bdc9a9dff04b00bafd8d7df5f6dfcbde (patch)
tree94b3e157338f7db50e43ce94cd5d855bf3d90f39 /README.md
parent7b181b51adfdd12d6ecd15160c8bb80bde6883ac (diff)
downloadzig-367ea908bdc9a9dff04b00bafd8d7df5f6dfcbde.tar.gz
zig-367ea908bdc9a9dff04b00bafd8d7df5f6dfcbde.zip
readme: update int types
Diffstat (limited to 'README.md')
-rw-r--r--README.md48
1 files changed, 24 insertions, 24 deletions
diff --git a/README.md b/README.md
index 8c873b9506..a89f9356d3 100644
--- a/README.md
+++ b/README.md
@@ -93,30 +93,30 @@ make
## Primitive Numeric Types:
-zig | C equivalent | Description
--------------|---------------------|-------------------------------
- bool | bool | unsigned 1-bit integer
- i8 | int8_t | signed 8-bit integer
- u8 | uint8_t | unsigned 8-bit integer
- i16 | int16_t | signed 16-bit integer
- u16 | uint16_t | unsigned 16-bit integer
- i32 | int32_t | signed 32-bit integer
- u32 | uint32_t | unsigned 32-bit integer
- i64 | int64_t | signed 64-bit integer
- u64 | uint64_t | unsigned 64-bit integer
- f32 | float | 32-bit IEE754 floating point
- f64 | double | 64-bit IEE754 floating point
- f128 | long double | 128-bit IEE754 floating point
- isize | intptr_t | signed pointer sized integer
- usize | uintptr_t | unsigned pointer sized integer
- c_short | short | for API compatibility with C
- c_ushort | unsigned short | for API compatibility with C
- c_int | int | for API compatibility with C
- c_uint | unsigned int | for API compatibility with C
- c_long | long | for API compatibility with C
- c_ulong | unsigned long | for API compatibility with C
- c_longlong | long long | for API compatibility with C
- c_ulonglong | unsigned long long | for API compatibility with C
+zig | C equivalent | Description
+-------------|------------------------|-------------------------------
+ bool | bool | unsigned 1-bit integer
+ i8 | signed char, int8_t | signed 8-bit integer
+ u8 | unsigned char, uint8_t | unsigned 8-bit integer
+ i16 | int16_t | signed 16-bit integer
+ u16 | uint16_t | unsigned 16-bit integer
+ i32 | int32_t | signed 32-bit integer
+ u32 | uint32_t | unsigned 32-bit integer
+ i64 | int64_t | signed 64-bit integer
+ u64 | uint64_t | unsigned 64-bit integer
+ f32 | float | 32-bit IEE754 floating point
+ f64 | double | 64-bit IEE754 floating point
+ f128 | long double | 128-bit IEE754 floating point
+ isize | intptr_t | signed pointer sized integer
+ usize | uintptr_t | unsigned pointer sized integer
+ c_short | short | for API compatibility with C
+ c_ushort | unsigned short | for API compatibility with C
+ c_int | int | for API compatibility with C
+ c_uint | unsigned int | for API compatibility with C
+ c_long | long | for API compatibility with C
+ c_ulong | unsigned long | for API compatibility with C
+ c_longlong | long long | for API compatibility with C
+ c_ulonglong | unsigned long long | for API compatibility with C
## Grammar