@@ -32,19 +32,19 @@ specification](/doc/go_spec.html#Size_and_alignment_guarantees).
32
32
Those that aren't guaranteed may change in future versions of Go (for
33
33
example, we've considered changing the alignment of int64 on 32-bit).
34
34
35
- | Type | 64-bit | | 32-bit | |
36
- | --- | --- | --- | --- | --- |
37
- | | Size | Align | Size | Align |
38
- | bool, uint8, int8 | 1 | 1 | 1 | 1 |
39
- | uint16, int16 | 2 | 2 | 2 | 2 |
40
- | uint32, int32 | 4 | 4 | 4 | 4 |
41
- | uint64, int64 | 8 | 8 | 8 | 4 |
42
- | int, uint | 8 | 8 | 4 | 4 |
43
- | float32 | 4 | 4 | 4 | 4 |
44
- | float64 | 8 | 8 | 8 | 4 |
45
- | complex64 | 8 | 4 | 8 | 4 |
46
- | complex128 | 16 | 8 | 16 | 4 |
47
- | uintptr, * T, unsafe.Pointer | 8 | 8 | 4 | 4 |
35
+ | Type | 64-bit | | 32-bit | |
36
+ | ----------------------------- | -------- | ------- | -------- | ------- |
37
+ | | Size | Align | Size | Align |
38
+ | bool, uint8, int8 | 1 | 1 | 1 | 1 |
39
+ | uint16, int16 | 2 | 2 | 2 | 2 |
40
+ | uint32, int32 | 4 | 4 | 4 | 4 |
41
+ | uint64, int64 | 8 | 8 | 8 | 4 |
42
+ | int, uint | 8 | 8 | 4 | 4 |
43
+ | float32 | 4 | 4 | 4 | 4 |
44
+ | float64 | 8 | 8 | 8 | 4 |
45
+ | complex64 | 8 | 4 | 8 | 4 |
46
+ | complex128 | 16 | 8 | 16 | 4 |
47
+ | uintptr, * T, unsafe.Pointer | 8 | 8 | 4 | 4 |
48
48
49
49
The types ` byte ` and ` rune ` are aliases for ` uint8 ` and ` int32 ` ,
50
50
respectively, and hence have the same size and alignment as these
0 commit comments