setSlow is split from Set to allow the aliasing fast-path to be inlined in callers.
(x *Decimal)
| 215 | // setSlow is split from Set to allow the aliasing fast-path to be |
| 216 | // inlined in callers. |
| 217 | func (d *Decimal) setSlow(x *Decimal) *Decimal { |
| 218 | d.Form = x.Form |
| 219 | d.Negative = x.Negative |
| 220 | d.Exponent = x.Exponent |
| 221 | d.Coeff.Set(&x.Coeff) |
| 222 | return d |
| 223 | } |
| 224 | |
| 225 | // SetInt64 sets d to x and returns d. |
| 226 | func (d *Decimal) SetInt64(x int64) *Decimal { |