- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for rsh (0.15 sec)
-
src/cmd/asm/internal/lex/tokenizer.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 04 20:35:21 UTC 2022 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/arithConstGen.go
{name: "int8", sn: "8", i: []int64{-128, -127, -1, 0, 1, 126, 127}}, } var ops = []op{ {"add", "+"}, {"sub", "-"}, {"div", "/"}, {"mul", "*"}, {"lsh", "<<"}, {"rsh", ">>"}, {"mod", "%"}, {"and", "&"}, {"or", "|"}, {"xor", "^"}, } // compute the result of i op j, cast as type t. func ansU(i, j uint64, t, op string) string { var ans uint64 switch op {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 8.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/S390X.rules
(Rsh(64|32)Ux64 <t> x y) => (LOCGR {s390x.GreaterOrEqual} <t> (SR(D|W) <t> x y) (MOVDconst [0]) (CMPUconst y [64])) (Rsh(64|32)Ux32 <t> x y) => (LOCGR {s390x.GreaterOrEqual} <t> (SR(D|W) <t> x y) (MOVDconst [0]) (CMPWUconst y [64])) (Rsh(64|32)Ux16 <t> x y) => (LOCGR {s390x.GreaterOrEqual} <t> (SR(D|W) <t> x y) (MOVDconst [0]) (CMPWUconst (MOVHZreg y) [64]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 18:09:26 UTC 2023 - 74.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/magic_test.go
uint64(1)<<n - 1, } { X := new(big.Int).SetUint64(x) if X.Cmp(Max) > 0 { continue } Want := new(big.Int).Quo(X, C) Got := new(big.Int).Mul(X, M) Got.Rsh(Got, n+uint(s)) if Want.Cmp(Got) != 0 { t.Errorf("umagic for %d/%d n=%d doesn't work, got=%s, want %s\n", x, c, n, Got, Want) } } } } } func TestMagicSigned(t *testing.T) {
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/asm/internal/lex/lex.go
type ScanToken rune const ( // Asm defines some two-character lexemes. We make up // a rune/ScanToken value for them - ugly but simple. LSH ScanToken = -1000 - iota // << Left shift. RSH // >> Logical right shift. ARR // -> Used on ARM for shift type 3, arithmetic right shift.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 4.1K bytes - Viewed (0) -
src/math/big/alias_test.go
}, v.Int, x.Int) }, "Rem": func(v, x bigInt, y notZeroInt) bool { return checkAliasingTwoArgs(t, (*big.Int).Rem, v.Int, x.Int, y.Int) }, "Rsh": func(v, x bigInt, n smallUint) bool { return checkAliasingOneArg(t, func(v, x *big.Int) *big.Int { return v.Rsh(x, n.uint) }, v.Int, x.Int) }, "Set": func(v, x bigInt) bool { return checkAliasingOneArg(t, (*big.Int).Set, v.Int, x.Int) },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 15:49:05 UTC 2022 - 8.8K bytes - Viewed (0) -
src/math/big/int.go
} } // Lsh sets z = x << n and returns z. func (z *Int) Lsh(x *Int, n uint) *Int { z.abs = z.abs.shl(x.abs, n) z.neg = x.neg return z } // Rsh sets z = x >> n and returns z. func (z *Int) Rsh(x *Int, n uint) *Int { if x.neg { // (-x) >> s == ^(x-1) >> s == ^((x-1) >> s) == -(((x-1) >> s) + 1) t := z.abs.sub(x.abs, natOne) // no underflow because |x| > 0 t = t.shr(t, n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 17:02:38 UTC 2024 - 33.1K bytes - Viewed (0) -
misc/cgo/gmp/gmp.go
} // Lsh sets z = x << s and returns z. func (z *Int) Lsh(x *Int, s uint) *Int { x.doinit() z.doinit() C._mpz_mul_2exp(&z.i[0], &x.i[0], C.ulong(s)) return z } // Rsh sets z = x >> s and returns z. func (z *Int) Rsh(x *Int, s uint) *Int { x.doinit() z.doinit() C._mpz_div_2exp(&z.i[0], &x.i[0], C.ulong(s)) return z } // Exp sets z = x^y % m and returns z. // If m == nil, Exp sets z = x^y.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 9.5K bytes - Viewed (0) -
src/crypto/ecdsa/ecdsa_legacy.go
orderBytes := (orderBits + 7) / 8 if len(hash) > orderBytes { hash = hash[:orderBytes] } ret := new(big.Int).SetBytes(hash) excess := len(hash)*8 - orderBits if excess > 0 { ret.Rsh(ret, uint(excess)) } return ret } var errZeroParam = errors.New("zero parameter") // Sign signs a hash (which should be the result of hashing a larger message)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 4.8K bytes - Viewed (0) -
test/fixedbugs/issue9604b.go
} var shiftops = []shiftop{ shiftop{"<<", func(x *big.Int, i uint) *big.Int { return new(big.Int).Lsh(x, i) }}, shiftop{">>", func(x *big.Int, i uint) *big.Int { return new(big.Int).Rsh(x, i) }}, } // valname returns the name of n as can be used as part of a variable name. func valname(n *big.Int) string { s := fmt.Sprintf("%d", n) if s[0] == '-' { s = "neg" + s[1:] } return s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 4.8K bytes - Viewed (0)