mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8290034: Auto vectorize reverse bit operations.
Reviewed-by: xgong, kvn
This commit is contained in:
parent
348a0521e1
commit
5d82d67a9e
18 changed files with 425 additions and 0 deletions
|
@ -173,4 +173,11 @@ public class Integers {
|
|||
res[i] = Integer.reverseBytes(intsSmall[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@Benchmark
|
||||
public void reverse() {
|
||||
for (int i = 0; i < size; i++) {
|
||||
res[i] = Integer.reverse(intsSmall[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue