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

Function lean_mk_empty_float_array

src/sarray/float.rs:5–14  ·  view source on GitHub ↗
(capacity: b_lean_obj_arg)

Source from the content-addressed store, hash-verified

3
4#[inline]
5pub unsafe fn lean_mk_empty_float_array(capacity: b_lean_obj_arg) -> lean_obj_res {
6 if !lean_is_scalar(capacity) {
7 lean_internal_panic_out_of_memory()
8 }
9 lean_alloc_sarray(
10 core::mem::size_of::<f64>() as c_uint,
11 0,
12 lean_unbox(capacity),
13 )
14}
15
16#[inline(always)]
17pub unsafe fn lean_float_array_size(a: b_lean_obj_arg) -> lean_obj_res {

Callers

nothing calls this directly

Calls 3

lean_is_scalarFunction · 0.85
lean_alloc_sarrayFunction · 0.85
lean_unboxFunction · 0.85

Tested by

no test coverage detected