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

Method min_bits

cranelift/codegen/src/ir/types.rs:303–309  ·  view source on GitHub ↗

Get the minimum number of bits used to represent this type.

(self)

Source from the content-addressed store, hash-verified

301
302 /// Get the minimum number of bits used to represent this type.
303 pub fn min_bits(self) -> u32 {
304 if self.is_dynamic_vector() {
305 self.lane_bits() * self.min_lane_count()
306 } else {
307 self.bits()
308 }
309 }
310
311 /// Get the number of bytes used to store this type in memory.
312 pub fn bytes(self) -> u32 {

Callers

nothing calls this directly

Calls 4

is_dynamic_vectorMethod · 0.80
min_lane_countMethod · 0.80
lane_bitsMethod · 0.45
bitsMethod · 0.45

Tested by

no test coverage detected