Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!tut!funic!fuug!sti!ttl From: ttl@sti.fi (Timo Lehtinen) Newsgroups: comp.lang.c Subject: How to reverse bits... Message-ID: <1990Aug13.185757.3236@sti.fi> Date: 13 Aug 90 18:57:57 GMT Reply-To: ttl@sti.fi (Timo Lehtinen) Organization: Stream Technologies Inc. Lines: 11 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