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

Method innerOrNilOrAlias

bigint.go:158–165  ·  view source on GitHub ↗

innerOrNilOrAlias is like inner, but with the added semantics specified for both innerOrNil and innerOrAlias. NOTE: this is not inlined.

(tmp *big.Int, a *BigInt, ai *big.Int)

Source from the content-addressed store, hash-verified

156// both innerOrNil and innerOrAlias.
157// NOTE: this is not inlined.
158func (z *BigInt) innerOrNilOrAlias(tmp *big.Int, a *BigInt, ai *big.Int) *big.Int {
159 if z == nil {
160 return nil
161 } else if z == a {
162 return ai
163 }
164 return z.inner(tmp)
165}
166
167// updateInner updates the BigInt's current value with the provided *big.Int.
168//

Callers 1

GCDMethod · 0.80

Calls 1

innerMethod · 0.95

Tested by

no test coverage detected