Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sdivisibleOK32 (0.28 sec)

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

    	// Don't use it for powers of 2.
    	return c&(c-1) != 0
    }
    
    func sdivisibleOK8(c int8) bool   { return sdivisibleOK(8, int64(c)) }
    func sdivisibleOK16(c int16) bool { return sdivisibleOK(16, int64(c)) }
    func sdivisibleOK32(c int32) bool { return sdivisibleOK(32, int64(c)) }
    func sdivisibleOK64(c int64) bool { return sdivisibleOK(64, c) }
    
    type sdivisibleData struct {
    	k   int64  // trailingZeros(c)
    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

    	&& x.Op != OpConst32 && sdivisibleOK32(c)
     => (Leq32U
    			(RotateLeft32 <typ.UInt32>
    				(Add32 <typ.UInt32>
    					(Mul32 <typ.UInt32>
    						(Const32 <typ.UInt32> [int32(sdivisible32(c).m)])
    						x)
    					(Const32 <typ.UInt32> [int32(sdivisible32(c).a)])
    				)
    				(Const32 <typ.UInt32> [int32(32-sdivisible32(c).k)])
    			)
    			(Const32 <typ.UInt32> [int32(sdivisible32(c).max)])
    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: (Leq32U (RotateLeft32 <typ.UInt32> (Add32 <typ.UInt32> (Mul32 <typ.UInt32> (Const32 <typ.UInt32> [int32(sdivisible32(c).m)]) x) (Const32 <typ.UInt32> [int32(sdivisible32(c).a)]) ) (Const32 <typ.UInt32> [int32(32-sdivisible32(c).k)]) ) (Const32 <typ.UInt32> [int32(sdivisible32(c).max)]) )
    	for {
    		for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, 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