Re: [JAVA PATCH] Builtin support for popcount* and bswap* functions

2016-05-19 Thread Jeff Law
On 02/22/2016 11:13 AM, ro...@nextmovesoftware.com wrote: The following patch provides builtin support for byte swapping and bit counting. On suitable hardware, these generate the x86 popcount instructions, as also generated by the SUN HotSpot JIT/JVM for these method calls.

[JAVA PATCH] Builtin support for popcount* and bswap* functions

2016-02-22 Thread ro...@nextmovesoftware.com
The following patch provides builtin support for byte swapping and bit counting. On suitable hardware, these generate the x86 popcount instructions, as also generated by the SUN HotSpot JIT/JVM for these method calls. java.lang.Integer.bitCount -> __builtin_popcount java.lang.Long.bitCount ->