Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isPowerOfTwo8 (0.1 sec)

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

    // Rounds down.
    func log2uint32(n int64) int64 {
    	return int64(bits.Len32(uint32(n))) - 1
    }
    
    // isPowerOfTwoX functions report whether n is a power of 2.
    func isPowerOfTwo8(n int8) bool {
    	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
    }
    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