Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bitmask (0.26 sec)

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

        // The alternative (x + y) / 2 fails for large values.
        // The alternative (x + y) >>> 1 fails for negative values.
        return (x & y) + ((x ^ y) >> 1);
      }
    
      /*
       * This bitmask is used as an optimization for cheaply testing for divisibility by 2, 3, or 5.
       * Each bit is set to 1 for all remainders that indicate divisibility by 2, 3, or 5, so
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
Back to top