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

Method Bit

bigint.go:434–441  ·  view source on GitHub ↗

Bit calls (big.Int).Bit.

(i int)

Source from the content-addressed store, hash-verified

432
433// Bit calls (big.Int).Bit.
434func (z *BigInt) Bit(i int) uint {
435 if i == 0 && z.isInline() {
436 // Optimization for common case: odd/even test of z.
437 return uint(z._inline[0] & 1)
438 }
439 var tmp1 big.Int //gcassert:noescape
440 return z.inner(&tmp1).Bit(i)
441}
442
443// BitLen calls (big.Int).BitLen.
444func (z *BigInt) BitLen() int {

Callers 6

integerPowerMethod · 0.95
roundHalfEvenFunction · 0.80
testBitsetFunction · 0.80
TestBigIntBitSetFunction · 0.80
PowMethod · 0.80

Calls 2

isInlineMethod · 0.95
innerMethod · 0.95

Tested by 3

testBitsetFunction · 0.64
TestBigIntBitSetFunction · 0.64