← All docs
fdiv() — internals
Compiler internals for fdiv(): lowering path, type checks, and runtime helpers.
fdiv() — internals
Where it lives
- Signature:
src/builtins/math/fdiv.rs - Lowering:
src/codegen/lower_inst/builtins/math/binary.rs:66 (lower_fdiv) - Function symbol:
lower_fdiv()
Lowering notes
- Lowers
fdiv()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 fdiv(float $num1, float $num2): float
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/math/fdiv.rs(eval_builtin!) - Dispatch hooks:
direct,values