- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 26 for bigIntegers (0.07 seconds)
-
android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java
} } /** Previous version of BigIntegerMath.factorial, kept for timing purposes. */ private static BigInteger oldSlowFactorial(int n) { if (n <= 20) { return BigInteger.valueOf(LongMath.factorial(n)); } else { int k = 20; return BigInteger.valueOf(LongMath.factorial(k)).multiply(oldSlowFactorial(k, n)); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java
} } /** Previous version of BigIntegerMath.factorial, kept for timing purposes. */ private static BigInteger oldSlowFactorial(int n) { if (n <= 20) { return BigInteger.valueOf(LongMath.factorial(n)); } else { int k = 20; return BigInteger.valueOf(LongMath.factorial(k)).multiply(oldSlowFactorial(k, n)); } }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.5K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
final BigInteger lastBigInt = BigInteger.valueOf(last); final BigInteger firstBigInt = BigInteger.valueOf(first); BigInteger completeBigInt = lastBigInt.add(firstBigInt.shiftLeft(32)); completeBigInt = completeBigInt.divide(BigInteger.valueOf(10000L)); completeBigInt = completeBigInt.add(BigInteger.valueOf(-SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601));
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/MathBenchmarking.java
* range uniformly at random. Zero is treated as having log2 == 0. */ static BigInteger randomNonNegativeBigInteger(int numBits) { int digits = RANDOM_SOURCE.nextInt(numBits); if (digits == 0) { return new BigInteger(1, RANDOM_SOURCE); } else { return new BigInteger(digits, RANDOM_SOURCE).setBit(digits); } } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 4.2K bytes - Click Count (0) -
src/main/java/org/codelibs/core/convert/BigIntegerConversionUtil.java
*/ public static BigInteger toBigInteger(final Object o) { return toBigInteger(o, null); } /** * Converts to {@link BigInteger}. * * @param o * The object to convert * @param pattern * The pattern string * @return The converted {@link BigInteger} */Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 1.8K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
import com.google.caliper.Param; import java.math.BigInteger; import java.math.RoundingMode; import org.jspecify.annotations.NullUnmarked; /** * Benchmarks for the rounding methods of {@code BigIntegerMath}. * * @author Louis Wasserman */ @NullUnmarked public class BigIntegerMathRoundingBenchmark { private static final BigInteger[] nonzero1 = new BigInteger[ARRAY_SIZE];Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java
() -> MathPreconditions.checkPositive("BigInteger", BigInteger.ZERO)); } public void testCheckPositive_positiveBigInteger() { MathPreconditions.checkPositive("BigInteger", BigInteger.ONE); } public void testCheckPositive_negativeBigInteger() { assertThrows( IllegalArgumentException.class, () -> MathPreconditions.checkPositive("BigInteger", BigInteger.ZERO.negate())); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/MemoryUtil.java
public static String byteCountToDisplaySize(final long size) { return byteCountToDisplaySize(BigInteger.valueOf(size)); } private static String byteCountToDisplaySize(final BigInteger size) { Objects.requireNonNull(size, "size"); final String displaySize; if (size.divide(ONE_EB_BI).compareTo(BigInteger.ZERO) > 0) {
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 5.3K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
import com.google.caliper.Param; import java.math.BigInteger; import java.math.RoundingMode; import org.jspecify.annotations.NullUnmarked; /** * Benchmarks for the rounding methods of {@code BigIntegerMath}. * * @author Louis Wasserman */ @NullUnmarked public class BigIntegerMathRoundingBenchmark { private static final BigInteger[] nonzero1 = new BigInteger[ARRAY_SIZE];Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.9K bytes - Click Count (0) -
android/guava/src/com/google/common/math/MathPreconditions.java
if (x <= 0) { throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); } return x; } @CanIgnoreReturnValue static BigInteger checkPositive(String role, BigInteger x) { if (x.signum() <= 0) { throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); } return x; } @CanIgnoreReturnValue
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 3.2K bytes - Click Count (0)