Re: [RFC] x86: bitops asm constraint fixes

From: H. Peter Anvin
Date: Wed Mar 19 2008 - 15:25:26 EST


Jan Beulich wrote:

That's not very desirable: For one part, because there are uses of
bitops on arrays of ints (and casting these up isn't fully correct on
x86-64 because of the same reason that using the bitops on char
arrays isn't correct (see the other response I sent to Jeremy's reply),
but also because operating on longs requires REX prefixes n x86-64,
hence making the code bigger for no good reason.


It might be worthwhile to find out if 64-bit bitops are faster.

Bitops are normally defined only on longs, but since x86 is a littleendian architecture we sometimes fudge that in arch-specific code.

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