MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / sclass_size

Function sclass_size

cranelift/entity/src/list.rs:121–123  ·  view source on GitHub ↗
(sclass: SizeClass)

Source from the content-addressed store, hash-verified

119/// length is one less than the class size.
120#[inline]
121fn sclass_size(sclass: SizeClass) -> usize {
122 4 << sclass
123}
124
125/// Get the size class to use for a given list length.
126/// This always leaves room for the length element in addition to the list elements.

Callers 1

allocMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected