Skip to content

Commit

Permalink
forbid using too many bits
Browse files Browse the repository at this point in the history
  • Loading branch information
etseidl committed Feb 26, 2024
1 parent 5c2932f commit 9b9a1ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Encodings.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ Subtractions in steps 1) and 2) may incur signed arithmetic overflow, and so
will the corresponding additions when decoding. Overflow should be allowed
and handled as wrapping around in 2's complement notation so that the original
values are correctly restituted. This may require explicit care in some programming
languages (for example by doing all arithmetic in the unsigned domain).
languages (for example by doing all arithmetic in the unsigned domain). Writers
must not use more bits when bit packing the miniblock data than would be required
to PLAIN encode the physical type (e.g. INT32 data must not use more than 32 bits).

One strategy that might be employed to avoid the above mentioned overflow is to
perform the subtraction utilizing integers with a larger number of bits. For example,
Expand Down

0 comments on commit 9b9a1ca

Please sign in to comment.