Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for udivisibleOK16 (0.22 sec)

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

    	d := uint64(c) << (64 - n) >> (64 - n)
    
    	// Doesn't work for 0.
    	// Don't use for powers of 2.
    	return d&(d-1) != 0
    }
    
    func udivisibleOK8(c int8) bool   { return udivisibleOK(8, int64(c)) }
    func udivisibleOK16(c int16) bool { return udivisibleOK(16, int64(c)) }
    func udivisibleOK32(c int32) bool { return udivisibleOK(32, int64(c)) }
    func udivisibleOK64(c int64) bool { return udivisibleOK(64, c) }
    
    type udivisibleData struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/generic.rules

      && m == int64(1<<16+umagic16(c).m) && s == 16+umagic16(c).s
      && x.Op != OpConst16 && udivisibleOK16(c)
     => (Leq16U
    			(RotateLeft16 <typ.UInt16>
    				(Mul16 <typ.UInt16>
    					(Const16 <typ.UInt16> [int16(udivisible16(c).m)])
    					x)
    				(Const16 <typ.UInt16> [int16(16-udivisible16(c).k)])
    				)
    			(Const16 <typ.UInt16> [int16(udivisible16(c).max)])
    		)
    
    (Eq16 x (Mul16 (Const16 [c])
      (Trunc32to16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewritegeneric.go

    	// result: (Leq16U (RotateLeft16 <typ.UInt16> (Mul16 <typ.UInt16> (Const16 <typ.UInt16> [int16(udivisible16(c).m)]) x) (Const16 <typ.UInt16> [int16(16-udivisible16(c).k)]) ) (Const16 <typ.UInt16> [int16(udivisible16(c).max)]) )
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 {
    			x := v_0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
Back to top