Set sets d's fields to the values of x and returns d. gcassert:inline
(x *Decimal)
| 206 | // |
| 207 | //gcassert:inline |
| 208 | func (d *Decimal) Set(x *Decimal) *Decimal { |
| 209 | if d == x { |
| 210 | return d |
| 211 | } |
| 212 | return d.setSlow(x) |
| 213 | } |
| 214 | |
| 215 | // setSlow is split from Set to allow the aliasing fast-path to be |
| 216 | // inlined in callers. |