MCPcopy Create free account
hub / github.com/cockroachdb/apd / Rsh

Method Rsh

bigint.go:817–823  ·  view source on GitHub ↗

Rsh calls (big.Int).Rsh.

(x *BigInt, n uint)

Source from the content-addressed store, hash-verified

815
816// Rsh calls (big.Int).Rsh.
817func (z *BigInt) Rsh(x *BigInt, n uint) *BigInt {
818 var tmp1, tmp2 big.Int //gcassert:noescape
819 zi := z.inner(&tmp1)
820 zi.Rsh(x.inner(&tmp2), n)
821 z.updateInner(zi)
822 return z
823}
824
825// Scan calls (big.Int).Scan.
826func (z *BigInt) Scan(s fmt.ScanState, ch rune) error {

Callers 6

integerPowerMethod · 0.95
TestBigIntRshFunction · 0.80
TestBigIntRshSelfFunction · 0.80
TestBigIntLshRshFunction · 0.80
altBitFunction · 0.80

Calls 2

innerMethod · 0.95
updateInnerMethod · 0.95

Tested by 5

TestBigIntRshFunction · 0.64
TestBigIntRshSelfFunction · 0.64
TestBigIntLshRshFunction · 0.64
altBitFunction · 0.64