- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for udivisibleOK (0.27 sec)
-
src/cmd/compile/internal/ssa/magic.go
k: int64(k), m: m, max: max, } } func udivisible8(c int8) udivisibleData { return udivisible(8, int64(c)) } func udivisible16(c int16) udivisibleData { return udivisible(16, int64(c)) } func udivisible32(c int32) udivisibleData { return udivisible(32, int64(c)) } func udivisible64(c int64) udivisibleData { return udivisible(64, c) } // For signed integers, a similar method follows. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:25 UTC 2024 - 15.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/magic_test.go
} } } func testDivisibleExhaustiveU(t *testing.T, n uint) { maxU := uint64(1) << n for c := uint64(1); c < maxU; c++ { if !udivisibleOK(n, int64(c)) { continue } k := udivisible(n, int64(c)).k m := udivisible(n, int64(c)).m max := udivisible(n, int64(c)).max mask := ^uint64(0) >> (64 - n) for i := uint64(0); i < maxU; i++ { want := i%c == 0 mul := (i * m) & mask
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 22:02:07 UTC 2019 - 9.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/generic.rules
&& 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 (Rsh32Ux64 mul:(Mul32 (Const32 [m])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 22:21:05 UTC 2024 - 135.3K bytes - Viewed (0) -
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 if v_1.Op != OpMul16 { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 18:24:47 UTC 2024 - 812.2K bytes - Viewed (0)