More efficient reverse_bits
implementation.
#40
Labels
Important
high value feature or optimization
Milestone
reverse_bits
implementation.
#40
In general the
reverse_bits
function should be generalised to work on whatever word type theBitVec
object is using and then be applied to accumulator directly instead of each byte (assuming the bytes are reversed while assembling the accumulator value). Additionally bit switching should be cheaper than shifting. Consider:I'm assuming
!B::zero() / 3
etc. become compile time constants.The text was updated successfully, but these errors were encountered: