Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isPowerOfTwo (0.24 sec)

  1. android/guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java

          if (DoubleMath.isMathematicalInteger(doubles[j])) {
            tmp++;
          }
        }
        return tmp;
      }
    
      @Benchmark
      int isPowerOfTwo(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          if (DoubleMath.isPowerOfTwo(doubles[j])) {
            tmp++;
          }
        }
        return tmp;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.5K bytes
    - Viewed (0)
Back to top