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

Method SetBit

bigint.go:850–856  ·  view source on GitHub ↗

SetBit calls (big.Int).SetBit.

(x *BigInt, i int, b uint)

Source from the content-addressed store, hash-verified

848
849// SetBit calls (big.Int).SetBit.
850func (z *BigInt) SetBit(x *BigInt, i int, b uint) *BigInt {
851 var tmp1, tmp2 big.Int //gcassert:noescape
852 zi := z.inner(&tmp1)
853 zi.SetBit(x.inner(&tmp2), i, b)
854 z.updateInner(zi)
855 return z
856}
857
858// SetBits calls (big.Int).SetBits.
859func (z *BigInt) SetBits(abs []big.Word) *BigInt {

Callers 5

TestBigIntBitSetFunction · 0.95
BenchmarkBigIntBitsetNegFunction · 0.95
testBitsetFunction · 0.80
BenchmarkBigIntBitsetFunction · 0.80

Calls 2

innerMethod · 0.95
updateInnerMethod · 0.95

Tested by 5

TestBigIntBitSetFunction · 0.76
BenchmarkBigIntBitsetNegFunction · 0.76
testBitsetFunction · 0.64
BenchmarkBigIntBitsetFunction · 0.64