- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for randomNonZeroBigInteger (0.16 sec)
-
android/guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
RoundingMode mode; @BeforeExperiment void setUp() { for (int i = 0; i < ARRAY_SIZE; i++) { positive[i] = randomPositiveBigInteger(1024); nonzero1[i] = randomNonZeroBigInteger(1024); nonzero2[i] = randomNonZeroBigInteger(1024); } } @Benchmark int log2(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 30 13:06:20 UTC 2020 - 2.8K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java
RoundingMode mode; @BeforeExperiment void setUp() { for (int i = 0; i < ARRAY_SIZE; i++) { positive[i] = randomPositiveBigInteger(1024); nonzero1[i] = randomNonZeroBigInteger(1024); nonzero2[i] = randomNonZeroBigInteger(1024); } } @Benchmark int log2(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 30 13:06:20 UTC 2020 - 2.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java
import static com.google.common.math.MathBenchmarking.ARRAY_SIZE; import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE; import static com.google.common.math.MathBenchmarking.randomNonZeroBigInteger; import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java
import static com.google.common.math.MathBenchmarking.ARRAY_SIZE; import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE; import static com.google.common.math.MathBenchmarking.randomNonZeroBigInteger; import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java
import static com.google.common.math.MathBenchmarking.ARRAY_SIZE; import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE; import static com.google.common.math.MathBenchmarking.randomNonZeroBigInteger; import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger; import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/MathBenchmarking.java
} } /** * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50% * probability. */ static BigInteger randomNonZeroBigInteger(int numBits) { BigInteger result = randomPositiveBigInteger(numBits); return RANDOM_SOURCE.nextBoolean() ? result : result.negate(); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathBenchmarking.java
} } /** * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50% * probability. */ static BigInteger randomNonZeroBigInteger(int numBits) { BigInteger result = randomPositiveBigInteger(numBits); return RANDOM_SOURCE.nextBoolean() ? result : result.negate(); } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.1K bytes - Viewed (0)