Rename generic abs to fabs

Using the same name as the routines themselves means this will correctly
get picked up by the CI job looking for exhaustive tests.
This commit is contained in:
Trevor Gross 2025-01-02 10:19:54 +00:00 committed by Trevor Gross
parent 3fb16fbdbe
commit a277ec6954
4 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@ pub fn fabs(x: f64) -> f64 {
args: x,
}
super::generic::abs(x)
super::generic::fabs(x)
}
#[cfg(test)]

View file

@ -9,7 +9,7 @@ pub fn fabsf(x: f32) -> f32 {
args: x,
}
super::generic::abs(x)
super::generic::fabs(x)
}
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520

View file

@ -1,6 +1,6 @@
use super::super::Float;
/// Absolute value.
pub fn abs<F: Float>(x: F) -> F {
pub fn fabs<F: Float>(x: F) -> F {
x.abs()
}

View file

@ -1,5 +1,5 @@
mod abs;
mod copysign;
mod fabs;
pub use abs::abs;
pub use copysign::copysign;
pub use fabs::fabs;