Re: [BUGFIX]: 2.1.117 has a small bug

Aaron M. Ucko (amu@mit.edu)
24 Aug 1998 13:15:25 -0400


David Howells <dwh@nexor.co.uk> writes:

> Otherwise the 'constantness' of the bit number is keyed upon, rather than the
> addressed location.

Uhm, take another look at the code...AFAICT, that's the idea.
(When nr is a compile-time constant between 0 and 31, the code
essentially reduces to

return (*addr & C) != 0

where C is another compile-time constant.)

-- 
Aaron M. Ucko, KB1CJC <amu@mit.edu> (finger amu@monk.mit.edu)

- 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