#[unsafe(no_mangle)]pub unsafe extern "C" fn patch_seq_pow(stack: Stack) -> StackExpand description
Integer power (base^exp)
Stack effect: ( base exp – result success )
Returns the result and a Bool success flag. Success returns (base^exp, true) using O(log exp) exponentiation. Failure returns (0, false) in three cases: exp < 0, exp > u32::MAX, or the result overflows i64.
By convention, 0^0 = 1 (matching Rust’s i64::pow, Python, JS).
§Safety
Stack must have two Int values on top