Skip to content

Commit

Permalink
Fix based on review: space and new line
Browse files Browse the repository at this point in the history
  • Loading branch information
amosshi committed Aug 17, 2024
1 parent 1b6851e commit a7ff773
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/jdk/jdk/incubator/vector/DoubleMaxVectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ static void assertDoubleBroadcastArraysEquals(double[] r, double[] a, double[] b
}
}


static boolean isWithin1Ulp(double actual, double expected) {
if (Double.isNaN(expected) && !Double.isNaN(actual)) {
return false;
Expand Down
1 change: 1 addition & 0 deletions test/jdk/jdk/incubator/vector/FloatMaxVectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ static void assertDoubleBroadcastArraysEquals(float[] r, float[] a, float[] b, f
}
}


static boolean isWithin1Ulp(float actual, float expected) {
if (Float.isNaN(expected) && !Float.isNaN(actual)) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public class $vectorteststype$ extends AbstractVectorTest {
Assert.assertEquals(rc, fa.apply(a), Math.abs(rc * relativeError), "Final result is incorrect!");
Assert.assertEquals(r[i], f.apply(a, i), Math.abs(r[i] * relativeError), "at index #" + i);
}
}
}
#end[FP]

interface FReductionMaskedOp {
Expand Down

0 comments on commit a7ff773

Please sign in to comment.