Set calls (big.Int).Set.
(x *BigInt)
| 835 | |
| 836 | // Set calls (big.Int).Set. |
| 837 | func (z *BigInt) Set(x *BigInt) *BigInt { |
| 838 | if x.isInline() { |
| 839 | *z = *x |
| 840 | return z |
| 841 | } |
| 842 | var tmp1, tmp2 big.Int //gcassert:noescape |
| 843 | zi := z.inner(&tmp1) |
| 844 | zi.Set(x.inner(&tmp2)) |
| 845 | z.updateInner(zi) |
| 846 | return z |
| 847 | } |
| 848 | |
| 849 | // SetBit calls (big.Int).SetBit. |
| 850 | func (z *BigInt) SetBit(x *BigInt, i int, b uint) *BigInt { |