- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for doubleInIntRange (0.11 sec)
-
guava-tests/benchmark/com/google/common/math/DoubleMathRoundingBenchmark.java
doubleInIntRange[i] = randomDouble(Integer.SIZE - 2); doubleInLongRange[i] = randomDouble(Long.SIZE - 2); positiveDoubles[i] = randomPositiveDouble(); } } @Benchmark int roundToInt(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += DoubleMath.roundToInt(doubleInIntRange[j], mode); } return tmp; }
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/DoubleMathRoundingBenchmark.java
doubleInIntRange[i] = randomDouble(Integer.SIZE - 2); doubleInLongRange[i] = randomDouble(Long.SIZE - 2); positiveDoubles[i] = randomPositiveDouble(); } } @Benchmark int roundToInt(int reps) { int tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += DoubleMath.roundToInt(doubleInIntRange[j], mode); } return tmp; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.6K bytes - Viewed (0)