← All docs
atan2() — internals
Compiler internals for atan2(): lowering path, type checks, and runtime helpers.
atan2() — internals
Where it lives
- Signature:
src/builtins/math/atan2.rs - Lowering:
src/codegen/lower_inst/builtins/math/libm.rs:35 (lower_atan2) - Function symbol:
lower_atan2()
Lowering notes
- Lowers
atan2()using the C ABI argument ordery, x.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function atan2(float $y, float $x): float
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/math/atan2.rs(eval_builtin!) - Dispatch hooks:
direct,values