Re: The type of bitops

From: H. Peter Anvin
Date: Mon May 06 2013 - 21:36:53 EST


On 05/06/2013 05:51 PM, Linus Torvalds wrote:
>
>> 4. Do some macro hacks so the bitops are dependent on the size of the
>> argument.
>
> That sounds insane. Just *how* could the size of the argument even
> matter? Seriously, there's no *difference* between a 32-bit or a
> 64-bit index. The code is the same, there's no possible reason to make
> it be different.
>

The only reason on x86 would be to avoid the REX prefix. Hardly worth
it, though.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/