How to reverse bits...

Timo Lehtinen ttl at sti.fi
Tue Aug 14 04:57:57 AEST 1990


This might be trivial, but here goes...
What's the most optimal way to reverse the bits in an unsigned char,
i.e. change from MSB to LSB ordering ?

ttl

-- 
       ____/ ___   ___/    /		Kivihaantie 8 C 25
      /           /       /		SF-00310 HELSINKI, Finland
   ____  /       /       /	Phone:	+358 0 573 161, +358 49 424 012
  Stream Technologies Inc.	Fax:	+358 0 571 384



More information about the Comp.lang.c mailing list