MCPcopy Create free account
hub / github.com/cockroachdb/apd / setSlow

Method setSlow

decimal.go:217–223  ·  view source on GitHub ↗

setSlow is split from Set to allow the aliasing fast-path to be inlined in callers.

(x *Decimal)

Source from the content-addressed store, hash-verified

215// setSlow is split from Set to allow the aliasing fast-path to be
216// inlined in callers.
217func (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.
226func (d *Decimal) SetInt64(x int64) *Decimal {

Callers 1

SetMethod · 0.95

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected