Re: when will we ever learn...

ralf@uni-koblenz.de
Fri, 28 Aug 1998 19:51:29 +0200


On Thu, Aug 27, 1998 at 12:10:20PM +0800, David Luyer wrote:

> /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.

It's worse, on some architectures applying bitops to a char may result in
feeding functions that can only operate on correctly aligned operands
with bad addresses.

Ralf

-
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