< prev index next >
test/jdk/jdk/incubator/vector/benchmark/src/main/java/benchmark/crypto/ChaChaBench.java
Print this page
rev 55594 : tests and benchmark changes
*** 79,89 ****
private static class ChaChaVector {
private static final int[] STATE_CONSTANTS =
new int[]{0x61707865, 0x3320646e, 0x79622d32, 0x6b206574};
! private final IntVector.IntSpecies intSpecies;
private final int numBlocks;
private final Vector.Shuffle<Integer> rot1;
private final Vector.Shuffle<Integer> rot2;
private final Vector.Shuffle<Integer> rot3;
--- 79,89 ----
private static class ChaChaVector {
private static final int[] STATE_CONSTANTS =
new int[]{0x61707865, 0x3320646e, 0x79622d32, 0x6b206574};
! private final Vector.Species<Integer> intSpecies;
private final int numBlocks;
private final Vector.Shuffle<Integer> rot1;
private final Vector.Shuffle<Integer> rot2;
private final Vector.Shuffle<Integer> rot3;
*** 101,111 ****
private final Vector.Mask<Integer> mask3;
private final int[] state;
public ChaChaVector(Vector.Shape shape) {
! this.intSpecies = IntVector.species(shape);
this.numBlocks = intSpecies.length() / 4;
this.rot1 = makeRotate(1);
this.rot2 = makeRotate(2);
this.rot3 = makeRotate(3);
--- 101,111 ----
private final Vector.Mask<Integer> mask3;
private final int[] state;
public ChaChaVector(Vector.Shape shape) {
! this.intSpecies = Vector.Species.of(Integer.class, shape);
this.numBlocks = intSpecies.length() / 4;
this.rot1 = makeRotate(1);
this.rot2 = makeRotate(2);
this.rot3 = makeRotate(3);
< prev index next >