add functions for bit-reversal

Sometimes we need stuff like reversing every bit in each byte (but not
the byte-order).
6 files changed