Skip to content

Exponentiation ​

These instructions evaluate scalar powers and the natural exponential function.

OpcodeArgumentsOperands (stack)Description
powtypebase, exponentReplaces the operands with an integer power; type must be sht, int, lng, or oct, and the top value is the exponent.
powitypebase, exponentReplaces the operands with a floating-point base raised to an integer exponent; type must be hlf, flt, or dbl, and the top value is the exponent.
powftypebase, exponentReplaces the operands with a floating-point power; type must be hlf, flt, or dbl, and the top value is the exponent.
exptypevalueReplaces one operand with e raised to value; type must be hlf, flt, or dbl.