Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TrailingZeros16 (0.14 sec)

  1. test/codegen/mathbits.go

    	// arm:"CLZ"
    	// arm64:"RBITW","CLZW"
    	// s390x:"FLOGR","MOVWZ"
    	// ppc64x/power8:"ANDN","POPCNTW"
    	// ppc64x/power9: "CNTTZW"
    	// wasm:"I64Ctz"
    	return bits.TrailingZeros32(n)
    }
    
    func TrailingZeros16(n uint16) int {
    	// amd64:"BSFL","ORL\\t\\$65536"
    	// 386:"BSFL\t"
    	// arm:"ORR\t\\$65536","CLZ",-"MOVHU\tR"
    	// arm64:"ORR\t\\$65536","RBITW","CLZW",-"MOVHU\tR",-"RBIT\t",-"CLZ\t"
    	// s390x:"FLOGR","OR\t\\$65536"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite.go

    // ntzX returns the number of trailing zeros.
    func ntz64(x int64) int { return bits.TrailingZeros64(uint64(x)) }
    func ntz32(x int32) int { return bits.TrailingZeros32(uint32(x)) }
    func ntz16(x int16) int { return bits.TrailingZeros16(uint16(x)) }
    func ntz8(x int8) int   { return bits.TrailingZeros8(uint8(x)) }
    
    func oneBit(x int64) bool   { return x&(x-1) == 0 && x != 0 }
    func oneBit8(x int8) bool   { return x&(x-1) == 0 && x != 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)
  3. src/cmd/compile/internal/ssagen/ssa.go

    		},
    		sys.MIPS)
    	addF("math/bits", "TrailingZeros16",
    		func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
    			return s.newValue1(ssa.OpCtz16, types.Types[types.TINT], args[0])
    		},
    		sys.AMD64, sys.I386, sys.ARM, sys.ARM64, sys.Wasm)
    	addF("math/bits", "TrailingZeros16",
    		func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top