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

Method Exp

bigint.go:537–545  ·  view source on GitHub ↗

Exp calls (big.Int).Exp.

(x, y, m *BigInt)

Source from the content-addressed store, hash-verified

535
536// Exp calls (big.Int).Exp.
537func (z *BigInt) Exp(x, y, m *BigInt) *BigInt {
538 var tmp1, tmp2, tmp3, tmp4 big.Int //gcassert:noescape
539 zi := z.inner(&tmp1)
540 if zi.Exp(x.inner(&tmp2), y.inner(&tmp3), m.innerOrNil(&tmp4)) == nil {
541 return nil
542 }
543 z.updateInner(zi)
544 return z
545}
546
547// Format calls (big.Int).Format.
548func (z *BigInt) Format(s fmt.State, ch rune) {

Callers 12

TestBigIntIssue22830Function · 0.95
TestDigitsLookupTableFunction · 0.45
initFunction · 0.45
setBigWithPowFunction · 0.45
RunMethod · 0.45
BenchmarkExpFunction · 0.45
TestBigIntExpFunction · 0.45
BenchmarkBigIntExpFunction · 0.45
BenchmarkBigIntExp2Function · 0.45
TestErrDecimalFunction · 0.45

Calls 3

innerMethod · 0.95
updateInnerMethod · 0.95
innerOrNilMethod · 0.80

Tested by 10

TestBigIntIssue22830Function · 0.76
TestDigitsLookupTableFunction · 0.36
RunMethod · 0.36
BenchmarkExpFunction · 0.36
TestBigIntExpFunction · 0.36
BenchmarkBigIntExpFunction · 0.36
BenchmarkBigIntExp2Function · 0.36
TestErrDecimalFunction · 0.36