cairo_native_runtime

Function cairo_native__libfunc__ec__ec_state_add

Source
#[no_mangle]
pub unsafe extern "C" fn cairo_native__libfunc__ec__ec_state_add(
    state_ptr: &mut [[u8; 32]; 4],
    point_ptr: &[[u8; 32]; 2],
)
Expand description

Compute ec_state_add(state, point) and store the state back.

§Panics

This function will panic if either operand is out of range for a felt.

§Safety

This function is intended to be called from MLIR, deals with pointers, and is therefore definitely unsafe to use manually.