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

Method Set

decimal.go:208–213  ·  view source on GitHub ↗

Set sets d's fields to the values of x and returns d. gcassert:inline

(x *Decimal)

Source from the content-addressed store, hash-verified

206//
207//gcassert:inline
208func (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.

Callers 13

gdaTestFunction · 0.95
SqrtMethod · 0.95
CbrtMethod · 0.95
LnMethod · 0.95
integerPowerMethod · 0.95
NegMethod · 0.95
AbsMethod · 0.95
ReduceMethod · 0.95
NewWithBigIntFunction · 0.45
setSlowMethod · 0.45
setExponentMethod · 0.45
setBigMethod · 0.45

Calls 1

setSlowMethod · 0.95

Tested by 1

gdaTestFunction · 0.76