Bit calls (big.Int).Bit.
(i int)
| 432 | |
| 433 | // Bit calls (big.Int).Bit. |
| 434 | func (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. |
| 444 | func (z *BigInt) BitLen() int { |