MCPcopy Create free account
hub / github.com/digama0/lean-sys / lean_float_array_uset

Function lean_float_array_uset

src/sarray/float.rs:53–62  ·  view source on GitHub ↗
(a: lean_obj_arg, i: usize, v: f64)

Source from the content-addressed store, hash-verified

51
52#[inline(always)]
53pub unsafe fn lean_float_array_uset(a: lean_obj_arg, i: usize, v: f64) -> *mut lean_object {
54 let r = if lean_is_exclusive(a) {
55 a
56 } else {
57 lean_copy_byte_array(a)
58 };
59 let it = lean_float_array_cptr(r).add(i);
60 *it = v;
61 r
62}
63
64#[inline]
65pub unsafe fn lean_float_array_set(a: lean_obj_arg, i: b_lean_obj_arg, v: f64) -> *mut lean_object {

Callers 2

lean_float_array_setFunction · 0.85
lean_float_array_fsetFunction · 0.85

Calls 2

lean_is_exclusiveFunction · 0.85
lean_float_array_cptrFunction · 0.85

Tested by

no test coverage detected