← All docs
pow() — internals
Compiler internals for pow(): lowering path, type checks, and runtime helpers.
pow() — internals
Where it lives
- Signature:
src/builtins/math/pow.rs - Lowering:
src/codegen/lower_inst/builtins/math/binary.rs:120 (lower_pow) - Function symbol:
lower_pow()
Lowering notes
- Lowers
pow()for concrete integer-like and floating operands.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function pow(float $num, float $exponent): float
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/math/pow.rs(eval_builtin!) - Dispatch hooks:
direct,values