← All docs
abs() — internals
Compiler internals for abs(): lowering path, type checks, and runtime helpers.
abs() — internals
Where it lives
- Signature:
src/builtins/math/abs.rs - Lowering:
src/codegen/lower_inst/builtins/math.rs:43 (lower_abs) - Function symbol:
lower_abs()
Lowering notes
- Lowers
abs()for concrete integer-like and floating operands.
Runtime helpers
The following runtime helpers are referenced:
__rt_abs_mixed
Signature summary
function abs(int $num): mixed
What the type checker enforces
- Arity: takes exactly 1 argument.