Incorrect documentation for little-endian functions in What4.SWord
#225
Labels
documentation
Improvements or additions to documentation
What4.SWord
#225
The
What4.SWord
module has various functions that work over bit-endian and little-endian functions, suffixed with -BE
and -LE
, respectively. However, the litte-endian variants of each function have various inaccuracies in their documentation. Here are the ones that I have found:what4/what4/src/What4/SWord.hs
Lines 251 to 262 in 1748341
This says
Index of bit (0 is the most significant bit)
, but I believe that should beleast significant bit
.what4/what4/src/What4/SWord.hs
Lines 281 to 294 in 1748341
This says
Index of bit (0 is the most significant bit)
, but I believe that should beleast significant bit
. This also saysNOTE bits are numbered in big-endian ordering, meaning the most-significant bit is bit 0
, but I believe that should beNOTE bits are numbered in little-endian ordering, meaning the least-significant bit is bit 0
.what4/what4/src/What4/SWord.hs
Lines 340 to 357 in 1748341
This says
Starting index, from 0 as most significant bit
, but I believe that should beStarting index, from 0 as least significant bit
.The text was updated successfully, but these errors were encountered: