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

Method is_nan

cranelift/interpreter/src/value.rs:318–324  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

316 }
317
318 fn is_nan(&self) -> ValueResult<bool> {
319 match self {
320 DataValue::F32(f) => Ok(f.is_nan()),
321 DataValue::F64(f) => Ok(f.is_nan()),
322 _ => Err(ValueError::InvalidType(ValueTypeClass::Float, self.ty())),
323 }
324 }
325
326 fn bool(b: bool, vec_elem: bool, ty: Type) -> ValueResult<Self> {
327 assert!(ty.is_int());

Callers 13

unoMethod · 0.80
stepFunction · 0.80
maybe_from_u64Method · 0.80
wasm_truncMethod · 0.80
wasm_floorMethod · 0.80
wasm_ceilMethod · 0.80
wasm_nearestMethod · 0.80
mult_zero_nanFunction · 0.80
canonicalize_nan32Function · 0.80
canonicalize_nan64Function · 0.80
eqMethod · 0.80
arbitrary_of_typeMethod · 0.80

Calls 2

OkFunction · 0.85
tyMethod · 0.45

Tested by 1

mult_zero_nanFunction · 0.64