← All docs
sin() — internals
Compiler internals for sin(): lowering path, type checks, and runtime helpers.
sin() — internals
Where it lives
- Signature:
src/builtins/math/sin.rs - Lowering:
src/codegen/lower_inst/builtins/math/libm.rs:22 (lower_unary_libm) - Function symbol:
lower_unary_libm()
Lowering notes
- Lowers a one-argument libm builtin such as
sin(),cos(), orexp().
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function sin(float $num): float
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/math/sin.rs(eval_builtin!) - Dispatch hooks:
direct,values