Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for boundary (0.14 sec)

  1. android/guava/src/com/google/common/math/BigIntegerMath.java

        // Use floor(log2(num)) + 1 to prevent overflow of multiplication.
        int productBits = LongMath.log2(product, FLOOR) + 1;
        int bits = LongMath.log2(startingNumber, FLOOR) + 1;
        // Check for the next power of two boundary, to save us a CLZ operation.
        int nextPowerOfTwo = 1 << (bits - 1);
    
        // Iteratively multiply the longs as big as they can go.
        for (long num = startingNumber; num <= n; num++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
Back to top