6823354: Add intrinsics for {Integer,Long}.{numberOfLeadingZeros,numberOfTrailingZeros}()

These methods can be instrinsified by using bit scan, bit test, and population count instructions.

Reviewed-by: kvn, never
This commit is contained in:
Christian Thalinger 2009-05-06 00:27:52 -07:00
parent 716c78f080
commit 6a270f9f19
15 changed files with 997 additions and 17 deletions

View file

@ -2185,6 +2185,9 @@ class CommandLineFlags {
diagnostic(bool, PrintIntrinsics, false, \
"prints attempted and successful inlining of intrinsics") \
\
product(bool, UseCountLeadingZerosInstruction, false, \
"Use count leading zeros instruction") \
\
product(bool, UsePopCountInstruction, false, \
"Use population count instruction") \
\