summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-27 06:49:44 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-27 06:49:44 -0700
commitf1481d1a322121a0502027148b0c8ab18c4db0bd (patch)
treed34323fa1052523ec18ab5d667970567365b55d5 /txr.1
parent362a3c56d0eef8d12bae8b8555baafc404c2f22f (diff)
downloadtxr-f1481d1a322121a0502027148b0c8ab18c4db0bd.tar.gz
txr-f1481d1a322121a0502027148b0c8ab18c4db0bd.tar.bz2
txr-f1481d1a322121a0502027148b0c8ab18c4db0bd.zip
doc: fix wrong claim in Bitfield Allocation Rules.
* txr.1: Rewriting the last two sentences to fix the wrong claim of its last two sentences, which contradicts the correct statement in the the previous paragraph. The statements are only correct about big-endian, not about both types of machine.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.115
1 files changed, 6 insertions, 9 deletions
diff --git a/txr.1 b/txr.1
index 4b9a3e80..34463d4a 100644
--- a/txr.1
+++ b/txr.1
@@ -67529,15 +67529,12 @@ position (bit 0). If another one-bit-wide is allocated, it is placed into
bit 6 on big-endian, and bit 1 on little-endian.
More generally, whenever a bitfield is allocated for a big-endian machine, and
-the storage unit is determined into which that bitfield shall be placed, that
-field will be placed at that unit's most significant bit position that is still
-available for allocation. On a little-endian machine, that field will be placed
-at the least significant available bit position of the storage unit. On either
-type of machine, that field will be placed at the lowest-addressed byte or
-bytes that are available, and within that byte or those bytes, the field
-will occupy the most significant bit positions that are available. If the
-field partially occupies a byte, the bits that remain free are the least
-significant ones.
+the storage unit is determined into which that bitfield shall be placed, the
+most significant bits of that storage unit are filled first on a big-endian
+machine, whereas the least significant bits are filled first on a little-endian
+machine. From this it follows that on either type of machine, that field shall
+be placed at the lowest-addressed byte or bytes in which unallocated bits
+remain.
.SS* FFI Call Descriptors