Sign calls (big.Int).Sign.
()
| 907 | |
| 908 | // Sign calls (big.Int).Sign. |
| 909 | func (z *BigInt) Sign() int { |
| 910 | if z._inner == nil { |
| 911 | if z._inline == [inlineWords]big.Word{} { |
| 912 | return 0 |
| 913 | } |
| 914 | return 1 |
| 915 | } else if z._inner == negSentinel { |
| 916 | return -1 |
| 917 | } |
| 918 | return z._inner.Sign() |
| 919 | } |
| 920 | |
| 921 | // Sqrt calls (big.Int).Sqrt. |
| 922 | func (z *BigInt) Sqrt(x *BigInt) *BigInt { |
no outgoing calls