Re: Bit twiddling



In article <ln1x7jb47t.fsf@xxxxxxxxxxxxxxx> Keith Thompson <kst-u@xxxxxxx> writes:
....
> Whether bit 0 is the least or most significant bit is probably
> system-specific; the bits in a 32-bit word might be numbered 0..31 or
> 31..0. Which way they're numbered is probably more a matter of
> terminology than actual semantics, unless the CPU provides
> instructions that take bit numbers as arguments.

And if the instructions are consistent. That is not the case with all
processors...
--
*** t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~***/
.