[futurebasic] Bit swapping

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: Hans van Maanen <hvmaanen@...>
Date: Wed, 20 Oct 1999 16:19:49 +0200
Hi --

What would be the fastest way to swap eight bits, so that e.g. 64 becomes 2
(01000000 <> 00000010) and 192 becomes 3 (11000000 <> 00000011)?

Can this be done without a loop FOR i = 0 to 3 et cetera?

Any takers?

Thanks! --

Hans van Maanen