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

Method innerOrAlias

bigint.go:148–153  ·  view source on GitHub ↗

innerOrAlias is like inner, but returns the provided *big.Int if the receiver and the other *BigInt argument reference the same object. NOTE: this is not inlined.

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

Source from the content-addressed store, hash-verified

146// and the other *BigInt argument reference the same object.
147// NOTE: this is not inlined.
148func (z *BigInt) innerOrAlias(tmp *big.Int, a *BigInt, ai *big.Int) *big.Int {
149 if a == z {
150 return ai
151 }
152 return z.inner(tmp)
153}
154
155// innerOrNilOrAlias is like inner, but with the added semantics specified for
156// both innerOrNil and innerOrAlias.

Callers 2

DivModMethod · 0.80
ModMethod · 0.80

Calls 1

innerMethod · 0.95

Tested by

no test coverage detected