- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for 254 (0.01 sec)
-
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
.setExpectation(-Math.pow(2, 54), DOWN, CEILING, HALF_DOWN, HALF_UP, HALF_EVEN) .setExpectation(DoubleUtils.nextDown(-Math.pow(2, 54)), FLOOR, UP) .roundUnnecessaryShouldThrow() .test(); } public void testRoundToDouble_negativeTwoToThe54MinusThree() { new RoundToDoubleTester(BigDecimal.valueOf((-1L << 54) - 3)) .setExpectation(-Math.pow(2, 54), DOWN, CEILING) .setExpectation(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 10.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
.roundUnnecessaryShouldThrow() .test(); } @J2ktIncompatible @GwtIncompatible public void testRoundToDouble_twoToThe54PlusOne() { double twoToThe54 = Math.pow(2, 54); // the representable doubles are 2^54 and 2^54 + 4 // 2^54+1 is less than halfway between, so HALF_DOWN and HALF_UP will both go down. new RoundToDoubleTester(BigInteger.valueOf((1L << 54) + 1))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
assertThat(Chars.constrainToRange((char) 1, (char) 3, (char) 5)).isEqualTo((char) 3); assertThat(Chars.constrainToRange((char) 255, (char) 250, (char) 254)).isEqualTo((char) 254); assertThat(Chars.constrainToRange((char) 5, (char) 2, (char) 2)).isEqualTo((char) 2); assertThrows( IllegalArgumentException.class, () -> Chars.constrainToRange((char) 1, (char) 3, (char) 2)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
} } @Test fun readPaddedDataFrame() { val dataLength = 1123 val expectedData = ByteArray(dataLength) Arrays.fill(expectedData, 2.toByte()) val paddingLength = 254 val padding = ByteArray(paddingLength) Arrays.fill(padding, 0.toByte()) writeMedium(frame, dataLength + paddingLength + 1) frame.writeByte(Http2.TYPE_DATA) frame.writeByte(FLAG_PADDED)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 28.1K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
if (log2 < Double.MAX_EXPONENT) { sqrt0 = sqrtApproxWithDoubles(x); } else { int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even! /* * We have that x / 2^shift < 2^54. Our initial approximation to sqrtFloor(x) will be * 2^(shift/2) * sqrtApproxWithDoubles(x / 2^shift). */ sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
checkInitialCapacity(2, 0, 1); checkInitialCapacity(2, 1, 1); checkInitialCapacity(2, 2, 1); checkInitialCapacity(2, 3, 2); checkInitialCapacity(2, 4, 2); checkInitialCapacity(2, 5, 4); checkInitialCapacity(2, 6, 4); checkInitialCapacity(2, 7, 4); checkInitialCapacity(2, 8, 4); checkInitialCapacity(4, 0, 1); checkInitialCapacity(4, 1, 1);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 110.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
.writeByte(-1), ).build(), ) val response = getResponse(newRequest("/")) val inputStream = response.body.byteStream() assertThat(inputStream.read()).isEqualTo(254) assertThat(inputStream.read()).isEqualTo(255) assertThat(inputStream.read()).isEqualTo(-1) } @Test fun flushAfterStreamTransmittedWithChunkedEncoding() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0)