Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!ncar!ico!ism780c!news From: news@ism780c.isc.com (News system) Newsgroups: comp.lang.c Subject: Re: How to reverse bits... Message-ID: <46356@ism780c.isc.com> Date: 14 Aug 90 17:50:17 GMT References: <1990Aug13.222454.3862@craycos.com> Reply-To: marv@ism780.UUCP (Marvin Rubenstein) Organization: Interactive Systems Corp., Santa Monica CA Lines: 9 In article <1990Aug13.222454.3862@craycos.com> pmk@craycos.com (Peter Klausler) writes: >If the range of your bit-reversal function is limited to chars, use a lookup >table. If your range is bigger, split your data into bytes and then use a >lookup. Reversing the bits in a char variable is tricky to say the least. The C language does not specify the number of bits in a char variable. Marv Rubinstein