Skip to content

Commit

Permalink
Remove empty line before closing brace
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Nov 27, 2024
1 parent 961c804 commit 961ece2
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,5 @@ private static void assertArrayLengthsEqual(String msg, int expectedLength, int
out.append(" observed has length = ").append(observedLength);
Assertions.fail(out.toString());
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ public static BigInteger pow(final BigInteger k, final long e) {
}

return result;

}

/**
Expand Down Expand Up @@ -510,7 +509,6 @@ public static long remainderUnsigned(long dividend, long divisor) {
// Subtracting divisor using masking is more complex in this case
// and we use a condition
return dividend >= 0 || dividend < divisor ? dividend : dividend - divisor;

}
// From Hacker's Delight 2.0, section 9.3
final long q = ((dividend >>> 1) / divisor) << 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ void testPow() {
Assertions.assertEquals(bigOne, ArithmeticUtils.pow(twentyOne, 103));
Assertions.assertEquals(bigOne, ArithmeticUtils.pow(twentyOne, 103L));
Assertions.assertEquals(bigOne, ArithmeticUtils.pow(twentyOne, BigInteger.valueOf(103L)));

}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ static void sort(double[] data, int left, int right, boolean internal) {
data[j + 1] = v;
}
}

} else {
for (int i = left; ++i <= right;) {
final double v = data[i];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ public double applyAsDouble(final double[] v) {
final double t = s1 + y;
c1 = (t - s1) - y;
s1 = t;

} else if (x < SMALL_THRESH) {
// Scale up small numbers
final double y = square(x * SCALE_UP) - c3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ private static double fastSumWithStickyBitBranchedOnHigh(double a, double b) {
sticky = (sticky ^ fNegate) - fNegate;

return Double.longBitsToDouble(hi + sticky);

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ final class FieldsList {
createDD(-0.0, -0.0),
// double-double operations are subject to rounding so allow a tolerance.
FieldsList::areEqual);

} catch (Exception e) {
e.printStackTrace(System.err);
throw new RuntimeException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,6 @@ static double lgamma(double z, int[] sign) {
// This summation can have large magnitudes with opposite signs.
// Use an extended precision sum to reduce cancellation.
result = Sum.of(-lgamma(z)).add(-Math.log(t)).add(LOG_PI).getAsDouble();

} else if (z < ROOT_EPSILON) {
if (z == 0) {
// Pole error
Expand Down Expand Up @@ -1277,7 +1276,6 @@ private static double gammaIncompleteImp(double a, double x,
// calculate Q via asymptotic approximation:
invert = !invert;
evalMethod = 7;

} else if (x < 0.5) {
//
// Changeover criterion chosen to give a changeover at Q ~ 0.33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ final void testNormalizeFail_nan() {
Assertions.assertThrows(IllegalStateException.class,
q::normalize
);

}

@Test
Expand Down

0 comments on commit 961ece2

Please sign in to comment.