← All docs
gmp_powm() - internals
Compiler internals for gmp_powm(): lowering path, type checks, and runtime helpers.
gmp_powm() - internals
Where it lives
- Signature:
src/builtins/gmp/gmp_powm.rs - Lowering:
src/builtins/semantics.rs(lower_registry_call) - Function symbol:
lower_registry_call()
Lowering notes
- Uses the
eir_graphstrategy from the single-source builtin descriptor. - Emits backend-neutral EIR primitives or a small EIR graph through
BuiltinLoweringContext.
Semantic descriptor
- Target strategy:
eir_graph - Validation:
shared - Result type source:
shared - Result ownership:
fresh - Effects:
static (20 declared effects) - Requirements:
static (1 requirements) - Callable policy:
dynamic - Target support:
macos-aarch64,ios-arm64,ios-sim-arm64,linux-aarch64,linux-x86_64
EIR and runtime boundary
- Typed EIR target: descriptor-emitted EIR primitives or graph; no opaque builtin call remains.
Signature summary
function gmp_powm(object|string|int $num, object|string|int $exponent, object|string|int $modulus): object
What the type checker enforces
- Arity: takes exactly 3 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/gmp/gmp_powm.rs(eval_builtin!) - Execution: Magician interpreter adapter.
- Adapter reason:
capability-dependent. - Dispatch hooks:
direct,values