On Tue, Nov 12, 2013 at 11:54 AM, Joe Perches <joe@xxxxxxxxxxx> wrote: > On Mon, 2013-11-11 at 15:34 -0800, H. Peter Anvin wrote: >> On 11/10/2013 06:22 PM, Joe Perches wrote: >> > >> > Perhaps the current x86 bitops asm code is being conflated >> > with the ideal implementation? >> > >> Yes, by you. > > Really? I don't think so. What you think in this case doesn't really matter, does it? There are actual facts, and then there is your thinking, and guess which one matters? Peter is absolutely correct, and has shown remarkable restraint trying to explain it to you. The fact is, the x86 bitop instructions act on a signed index. Making the index be "unsigned long" would violate the actual *behavior* of the function, so it would be singularly stupid. Talking about "ideal implementation" is also singularly stupid. There's this fascinating thing called "reality", and you should try to re-aquaint yourself with it. Don't bother replying to this thread. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html