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

Method double_width

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

Get a type with the same number of lanes as this type, but with lanes that are twice the number of bits.

(self)

Source from the content-addressed store, hash-verified

186 /// Get a type with the same number of lanes as this type, but with lanes that are twice the
187 /// number of bits.
188 pub fn double_width(self) -> Option<Self> {
189 Some(self.replace_lanes(match self.lane_type() {
190 I8 => I16,
191 I16 => I32,
192 I32 => I64,
193 I64 => I128,
194 F16 => F32,
195 F32 => F64,
196 F64 => F128,
197 _ => return None,
198 }))
199 }
200
201 /// Is this the INVALID type?
202 pub fn is_invalid(self) -> bool {

Callers 3

stepFunction · 0.45
merge_lanesMethod · 0.45
resolveMethod · 0.45

Calls 2

replace_lanesMethod · 0.80
lane_typeMethod · 0.45

Tested by

no test coverage detected