| 1 |
# `Lsb0` Bit-Field Behavior |
| 2 |
|
| 3 |
`BitField` has no requirements about the in-memory representation or layout of |
| 4 |
stored integers within a bit-slice, only that round-tripping an integer through |
| 5 |
a store and a load of the same element suffix on the same bit-slice is |
| 6 |
idempotent (with respect to sign truncation). |
| 7 |
|
| 8 |
`Lsb0` provides a contiguous translation from bit-index to real memory: for any |
| 9 |
given bit index `n` and its position `P(n)`, `P(n + 1)` is `P(n) + 1`. This |
| 10 |
allows it to provide batched behavior: since the section of contiguous indices |
| 11 |
used within an element translates to a section of contiguous bits in real |
| 12 |
memory, the transaction is always a single shift/mask operation. |
| 13 |
|
| 14 |
Each implemented method contains documentation and examples showing exactly how |
| 15 |
the abstract integer space is mapped to real memory. |