diff options
author | Park Zhou <buildpaas@gmail.com> | 2022-02-11 14:55:36 +0800 |
---|---|---|
committer | Keith Randall <khr@google.com> | 2022-04-25 15:49:44 +0000 |
commit | 12763d141d9eb83b401e847e2ba91704b8cbb32e (patch) | |
tree | 987b7b0668ff4f25e5bce3c297d8459885275fb0 | |
parent | 94f25ec94920beee5fb2dd4c0cbf4cbff28f14e6 (diff) | |
download | go-12763d141d9eb83b401e847e2ba91704b8cbb32e.tar.gz go-12763d141d9eb83b401e847e2ba91704b8cbb32e.zip |
cmd/compile: align table
Signed-off-by: Park Zhou <buildpaas@gmail.com>
Change-Id: Idbbd2779264a7310b839af8291315e5e38b7ced9
Reviewed-on: https://go-review.googlesource.com/c/go/+/402120
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
-rw-r--r-- | src/cmd/compile/abi-internal.md | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/cmd/compile/abi-internal.md b/src/cmd/compile/abi-internal.md index be47e9a31b..14464ed904 100644 --- a/src/cmd/compile/abi-internal.md +++ b/src/cmd/compile/abi-internal.md @@ -32,19 +32,19 @@ specification](/doc/go_spec.html#Size_and_alignment_guarantees). Those that aren't guaranteed may change in future versions of Go (for example, we've considered changing the alignment of int64 on 32-bit). -| Type | 64-bit | | 32-bit | | -| --- | --- | --- | --- | --- | -| | Size | Align | Size | Align | -| bool, uint8, int8 | 1 | 1 | 1 | 1 | -| uint16, int16 | 2 | 2 | 2 | 2 | -| uint32, int32 | 4 | 4 | 4 | 4 | -| uint64, int64 | 8 | 8 | 8 | 4 | -| int, uint | 8 | 8 | 4 | 4 | -| float32 | 4 | 4 | 4 | 4 | -| float64 | 8 | 8 | 8 | 4 | -| complex64 | 8 | 4 | 8 | 4 | -| complex128 | 16 | 8 | 16 | 4 | -| uintptr, *T, unsafe.Pointer | 8 | 8 | 4 | 4 | +| Type | 64-bit | | 32-bit | | +|-----------------------------|--------|-------|--------|-------| +| | Size | Align | Size | Align | +| bool, uint8, int8 | 1 | 1 | 1 | 1 | +| uint16, int16 | 2 | 2 | 2 | 2 | +| uint32, int32 | 4 | 4 | 4 | 4 | +| uint64, int64 | 8 | 8 | 8 | 4 | +| int, uint | 8 | 8 | 4 | 4 | +| float32 | 4 | 4 | 4 | 4 | +| float64 | 8 | 8 | 8 | 4 | +| complex64 | 8 | 4 | 8 | 4 | +| complex128 | 16 | 8 | 16 | 4 | +| uintptr, *T, unsafe.Pointer | 8 | 8 | 4 | 4 | The types `byte` and `rune` are aliases for `uint8` and `int32`, respectively, and hence have the same size and alignment as these |