Ejemplo n.º 1
0
  public void testGetSet_short4() {
    testSetup(Element.I16_4(mRS));
    short tmp[] = randomShortArray(gCount);
    short tmp2[] = new short[gCount];
    script.forEach_copy1D_short4(walkAlloc);
    verify(tmp, tmp2, out1DAlloc, "Data mismatch short4: ", 4);
    scriptRelaxed.forEach_copy1D_short4(walkAlloc);
    verify(tmp, tmp2, out1DAlloc, "Data mismatch relaxed short4: ", 4);

    script.forEach_copy2D_short4(walkAlloc);
    verify(tmp, tmp2, out2DAlloc, "Data mismatch short4: ", 4);
    scriptRelaxed.forEach_copy2D_short4(walkAlloc);
    verify(tmp, tmp2, out2DAlloc, "Data mismatch relaxed short4: ", 4);

    script.forEach_copy3D_short4(walkAlloc);
    verify(tmp, tmp2, out3DAlloc, "Data mismatch short4: ", 4);
    scriptRelaxed.forEach_copy3D_short4(walkAlloc);
    verify(tmp, tmp2, out3DAlloc, "Data mismatch relaxed short4: ", 4);
  }