SetBit calls (big.Int).SetBit.
(x *BigInt, i int, b uint)
| 848 | |
| 849 | // SetBit calls (big.Int).SetBit. |
| 850 | func (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. |
| 859 | func (z *BigInt) SetBits(abs []big.Word) *BigInt { |