mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Data refactor part 4
This commit is contained in:
parent
0d19710d57
commit
bf357124c0
@ -235,15 +235,15 @@ public class VectorAlgorithms {
|
||||
// Every invocation should have a different value for e, so that
|
||||
// we don't get branch-prediction that is too good. And also so
|
||||
// That the length of the resulting data is more evenly distributed.
|
||||
idx = (idx + 1) & 0xffff;
|
||||
int e = eI[idx];
|
||||
d.eI_idx = (d.eI_idx + 1) & 0xffff;
|
||||
int e = d.eI[d.eI_idx];
|
||||
return VectorAlgorithmsImpl.filterI_loop(d.aI, d.rI1, e);
|
||||
}
|
||||
|
||||
@Benchmark
|
||||
public Object filterI_VectorAPI() {
|
||||
idx = (idx + 1) & 0xffff;
|
||||
int e = eI[idx];
|
||||
d.eI_idx = (d.eI_idx + 1) & 0xffff;
|
||||
int e = d.eI[d.eI_idx];
|
||||
return VectorAlgorithmsImpl.filterI_VectorAPI(d.aI, d.rI1, e);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user