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.
This commit is contained in:
Trevor Gross 2025-01-06 23:17:38 +00:00 committed by Trevor Gross
parent b5a217b11c
commit c574145577
2 changed files with 0 additions and 12 deletions

View file

@ -4,12 +4,6 @@
/// by direct manipulation of the bit representation of `x`.
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn fabsf128(x: f128) -> f128 {
select_implementation! {
name: fabsf,
use_intrinsic: target_arch = "wasm32",
args: x,
}
super::generic::fabs(x)
}

View file

@ -4,12 +4,6 @@
/// by direct manipulation of the bit representation of `x`.
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn fabsf16(x: f16) -> f16 {
select_implementation! {
name: fabsf,
use_intrinsic: target_arch = "wasm32",
args: x,
}
super::generic::fabs(x)
}