Re: when will we ever learn...

David Luyer (luyer@ucs.uwa.edu.au)
Thu, 27 Aug 1998 12:10:20 +0800


DAVID BALAZIC <david.balazic@uni-mb.si> wrote:
> David S. Miller (davem@dm.cobaltmicro.com) wrote :
>
> > That one cannot perform bitops on a char...
>
> Why not ?
> What bitops are You talking about anyway ? :-)

/usr/include/asm/bitops.h -- eg, set_bit, clear_bit, test_bit. Take
an argument of a pointer to the long to operate on. If it points to a
char, they may work for little endian, but not for middle/big endian.

David.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html