Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ wasm_abs
Method
wasm_abs
crates/core/src/math.rs:133–139 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
131
}
132
#[inline]
133
fn wasm_abs(self) -> f32 {
134
#[cfg(feature =
"std"
)]
135
if true {
136
return self.abs();
137
}
138
libm::fabsf(self)
139
}
140
#[inline]
141
fn wasm_nearest(self) -> f32 {
142
if self.is_nan() {
Callers
4
fabs32
Method · 0.80
fabs64
Method · 0.80
vabsf32x4
Method · 0.80
vabsf64x2
Method · 0.80
Calls
1
abs
Method · 0.80
Tested by
no test coverage detected