MCPcopy Create free account
hub / github.com/beling/bsuccinct-rs / level_array_for

Function level_array_for

ph/src/fmph/function.rs:162–165  ·  view source on GitHub ↗
(size_segments: usize)

Source from the content-addressed store, hash-verified

160}
161
162#[cfg(not(all(feature = "aligned-vec", target_pointer_width = "32")))] pub (crate) type LevelArray = Box<[u64]>;
163#[cfg(all(feature = "aligned-vec", target_pointer_width = "32"))] pub (crate) type LevelArray = aligned_vec::ABox<[u64], aligned_vec::ConstAlign<{std::mem::align_of::<AtomicU64>()}>>;
164pub(crate) fn level_array_for(size_segments: usize) -> LevelArray {
165 #[cfg(not(all(feature = "aligned-vec", target_pointer_width = "32")))] { vec![0u64; size_segments].into_boxed_slice() }
166 #[cfg(all(feature = "aligned-vec", target_pointer_width = "32"))] { aligned_vec::avec![[{std::mem::align_of::<AtomicU64>()}] | 0u64; size_segments].into_boxed_slice() }
167}
168

Callers 8

build_arrayMethod · 0.85
build_array_mtMethod · 0.85
build_level_stMethod · 0.85
build_levelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected