Relates :
|
|
Relates :
|
|
Relates :
|
bitCount() should use POPC on SPARC processors where POPC is implemented directly in hardware. (The existing bitCount() implementation comes from "Hacker's Delight" and is fairly fast). Beware, however, that POPC is implemented by kernel-level trap-based emulation on some processors. In those environments we want to use the existing bitCount() implemenation. isainfo (try "isainfo -x") should allow the JVM to identify those processors that support POPC in hardware. x86 processors include a popcnt instruction in SSE4a for AMD and SSE4.2 for Intel.
|