Swap should be better done native?
Ulf Zibis
Ulf.Zibis at gmx.de
Wed Mar 31 12:01:28 PDT 2010
Am 31.03.2010 20:40, schrieb Martin Buchholz:
> On Wed, Mar 31, 2010 at 11:23, Ulf Zibis<Ulf.Zibis at gmx.de> wrote:
>
>> Am 30.03.2010 20:23, schrieb Florian Weimer:
>>
>
>> Looking at the disassembly, I can't see any intrinsic method for swap.
>>
> There's a hotspot intrinsic for the reverseBytes methods.
>
You mean for Integer.reverseBytes, Long.reverseBytes, but not for
Bits.swap ?
That would explain my disassembly.
What's about swap(short), swap(char) ?
Thanks,
-Ulf
More information about the nio-discuss
mailing list