Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isPowerOfTwo64 (0.12 sec)

  1. src/cmd/compile/internal/ssa/rewrite.go

    	return n > 0 && n&(n-1) == 0
    }
    func isPowerOfTwo16(n int16) bool {
    	return n > 0 && n&(n-1) == 0
    }
    func isPowerOfTwo32(n int32) bool {
    	return n > 0 && n&(n-1) == 0
    }
    func isPowerOfTwo64(n int64) bool {
    	return n > 0 && n&(n-1) == 0
    }
    
    // isUint64PowerOfTwo reports whether uint64(n) is a power of 2.
    func isUint64PowerOfTwo(in int64) bool {
    	n := uint64(in)
    	return n > 0 && n&(n-1) == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
Back to top