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

Method wasm_floor

crates/core/src/math.rs:103–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 }
102 #[inline]
103 fn wasm_floor(self) -> f32 {
104 if self.is_nan() {
105 return f32::NAN;
106 }
107 #[cfg(feature = "std")]
108 if !cfg!(target_arch = "riscv64") {
109 return self.floor();
110 }
111 libm::floorf(self)
112 }
113 #[inline]
114 fn wasm_ceil(self) -> f32 {
115 if self.is_nan() {

Callers 6

ffloor32Method · 0.80
vfloor32x4Method · 0.80
vfloor64x2Method · 0.80
ffloor64Method · 0.80
floor_f32Function · 0.80
floor_f64Function · 0.80

Calls 4

floorfFunction · 0.85
floorFunction · 0.85
is_nanMethod · 0.80
floorMethod · 0.80

Tested by

no test coverage detected