Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 71ef733

Browse files
committed
Don't use intrinsics abs for f16 and f128 on wasm32
This configuration was duplicated from `fabs` and `fabsf`, but wasm is unlikely to have an intrinsic lowering for these float types. So, just always use the generic.
1 parent 59fc5ba commit 71ef733

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

libm/src/math/fabsf128.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
/// by direct manipulation of the bit representation of `x`.
55
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
66
pub fn fabsf128(x: f128) -> f128 {
7-
select_implementation! {
8-
name: fabsf,
9-
use_intrinsic: target_arch = "wasm32",
10-
args: x,
11-
}
12-
137
super::generic::fabs(x)
148
}
159

libm/src/math/fabsf16.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
/// by direct manipulation of the bit representation of `x`.
55
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
66
pub fn fabsf16(x: f16) -> f16 {
7-
select_implementation! {
8-
name: fabsf,
9-
use_intrinsic: target_arch = "wasm32",
10-
args: x,
11-
}
12-
137
super::generic::fabs(x)
148
}
159

0 commit comments

Comments
 (0)