MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / pow

Method pow

src/common/DecFloat.cpp:961–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959}
960
961Decimal128 Decimal128::pow(DecimalStatus decSt, Decimal128 op2) const
962{
963 decNumber dn, dn2;
964 decQuadToNumber(&dec, &dn);
965 decQuadToNumber(&op2.dec, &dn2);
966
967 DecimalContext context(this, decSt);
968 decNumberPower(&dn, &dn, &dn2, &context);
969
970 Decimal128 rc;
971 decQuadFromNumber(&rc.dec, &dn, &context);
972 return rc;
973}
974
975Decimal128 Decimal128::ln(DecimalStatus decSt) const
976{

Callers 2

evlExpFunction · 0.80
evlPowerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected