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

Method lane_bits

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

Get the number of bits in a lane.

(self)

Source from the content-addressed store, hash-verified

66
67 /// Get the number of bits in a lane.
68 pub fn lane_bits(self) -> u32 {
69 match self.lane_type() {
70 I8 => 8,
71 I16 | F16 => 16,
72 I32 | F32 => 32,
73 I64 | F64 => 64,
74 I128 | F128 => 128,
75 _ => 0,
76 }
77 }
78
79 /// Get the (minimum, maximum) values represented by each lane in the type.
80 /// Note that these are returned as unsigned 'bit patterns'.

Callers 13

stepFunction · 0.45
insert_int_divz_sequenceFunction · 0.45
bitsMethod · 0.45
min_bitsMethod · 0.45
byMethod · 0.45
wider_or_equalMethod · 0.45
be_vec_constMethod · 0.45
lane_byte_maskMethod · 0.45
mask_amt_immMethod · 0.45
shift_maskMethod · 0.45
from_typeMethod · 0.45
shift_maskMethod · 0.45

Calls 1

lane_typeMethod · 0.45

Tested by

no test coverage detected