← All docs
crc32() — internals
Compiler internals for crc32(): lowering path, type checks, and runtime helpers.
crc32() — internals
Where it lives
- Signature:
src/builtins/string/crc32.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:365 (lower_crc32) - Function symbol:
lower_crc32()
Lowering notes
- Lowers
crc32(string)through the shared checksum runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_crc32__rt_mb_strlen
Signature summary
function crc32(string $string): int
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/crc32.rs(eval_builtin!) - Dispatch hooks:
direct,values