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

Method Lsh

bigint.go:629–635  ·  view source on GitHub ↗

Lsh calls (big.Int).Lsh.

(x *BigInt, n uint)

Source from the content-addressed store, hash-verified

627
628// Lsh calls (big.Int).Lsh.
629func (z *BigInt) Lsh(x *BigInt, n uint) *BigInt {
630 var tmp1, tmp2 big.Int //gcassert:noescape
631 zi := z.inner(&tmp1)
632 zi.Lsh(x.inner(&tmp2), n)
633 z.updateInner(zi)
634 return z
635}
636
637// MarshalJSON calls (big.Int).MarshalJSON.
638func (z *BigInt) MarshalJSON() ([]byte, error) {

Callers 9

initFunction · 0.95
altSetBitFunction · 0.95
TestBigIntModSqrtFunction · 0.95
TestBigIntLshFunction · 0.80
TestBigIntLshSelfFunction · 0.80
TestBigIntLshRshFunction · 0.80
randBigIntFunction · 0.80

Calls 2

innerMethod · 0.95
updateInnerMethod · 0.95

Tested by 8

altSetBitFunction · 0.76
TestBigIntModSqrtFunction · 0.76
TestBigIntLshFunction · 0.64
TestBigIntLshSelfFunction · 0.64
TestBigIntLshRshFunction · 0.64
randBigIntFunction · 0.64