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:
parent
3fb16fbdbe
commit
a277ec6954
4 changed files with 5 additions and 5 deletions
|
|
@ -9,7 +9,7 @@ pub fn fabs(x: f64) -> f64 {
|
|||
args: x,
|
||||
}
|
||||
|
||||
super::generic::abs(x)
|
||||
super::generic::fabs(x)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
mod abs;
|
||||
mod copysign;
|
||||
mod fabs;
|
||||
|
||||
pub use abs::abs;
|
||||
pub use copysign::copysign;
|
||||
pub use fabs::fabs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue