tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kernel bitreverse function
Hi,
is there already a global function to reverse the bits in a byte?
If not, wouldn't it be useful to put an optimized function (e.g. with
a 256-byte lookup-table, or 16-byte for the two nibbles to save space)
into the kernel, or into libkern?
Some drivers already implement their own reverse functions. And I ask,
because I need one too, for a new I2C driver.
--
Frank Wille
Home |
Main Index |
Thread Index |
Old Index