Skip to content

Commit 6d78c1a

Browse files
committed
Replace super::super with crate::support where possible
Since `crate::support` now works in both `compiler-builtins` and `libm`, we can get rid of some of these unusual paths.
1 parent 8e78411 commit 6d78c1a

File tree

17 files changed

+19
-22
lines changed

17 files changed

+19
-22
lines changed

libm/src/math/generic/ceil.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//! performance seems to be better (based on icount) and it does not seem to experience rounding
88
//! errors on i386.
99
10-
use super::super::support::{FpResult, Status};
11-
use super::super::{Float, Int, IntTy, MinInt};
10+
use crate::support::{Float, FpResult, Int, IntTy, MinInt, Status};
1211

1312
#[inline]
1413
pub fn ceil<F: Float>(x: F) -> F {

libm/src/math/generic/copysign.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::super::Float;
1+
use crate::support::Float;
22

33
/// Copy the sign of `y` to `x`.
44
#[inline]

libm/src/math/generic/fabs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::super::Float;
1+
use crate::support::Float;
22

33
/// Absolute value.
44
#[inline]

libm/src/math/generic/fdim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::super::Float;
1+
use crate::support::Float;
22

33
#[inline]
44
pub fn fdim<F: Float>(x: F, y: F) -> F {

libm/src/math/generic/floor.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//! performance seems to be better (based on icount) and it does not seem to experience rounding
88
//! errors on i386.
99
10-
use super::super::support::{FpResult, Status};
11-
use super::super::{Float, Int, IntTy, MinInt};
10+
use crate::support::{Float, FpResult, Int, IntTy, MinInt, Status};
1211

1312
#[inline]
1413
pub fn floor<F: Float>(x: F) -> F {

libm/src/math/generic/fmax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//!
1515
//! [link]: https://grouper.ieee.org/groups/msc/ANSI_IEEE-Std-754-2019/background/minNum_maxNum_Removal_Demotion_v3.pdf
1616
17-
use super::super::Float;
17+
use crate::support::Float;
1818

1919
#[inline]
2020
pub fn fmax<F: Float>(x: F, y: F) -> F {

libm/src/math/generic/fmaximum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//!
1010
//! Excluded from our implementation is sNaN handling.
1111
12-
use super::super::Float;
12+
use crate::support::Float;
1313

1414
#[inline]
1515
pub fn fmaximum<F: Float>(x: F, y: F) -> F {

libm/src/math/generic/fmaximum_num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//!
1212
//! Excluded from our implementation is sNaN handling.
1313
14-
use super::super::Float;
14+
use crate::support::Float;
1515

1616
#[inline]
1717
pub fn fmaximum_num<F: Float>(x: F, y: F) -> F {

libm/src/math/generic/fmin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//!
1515
//! [link]: https://grouper.ieee.org/groups/msc/ANSI_IEEE-Std-754-2019/background/minNum_maxNum_Removal_Demotion_v3.pdf
1616
17-
use super::super::Float;
17+
use crate::support::Float;
1818

1919
#[inline]
2020
pub fn fmin<F: Float>(x: F, y: F) -> F {

libm/src/math/generic/fminimum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//!
1010
//! Excluded from our implementation is sNaN handling.
1111
12-
use super::super::Float;
12+
use crate::support::Float;
1313

1414
#[inline]
1515
pub fn fminimum<F: Float>(x: F, y: F) -> F {

0 commit comments

Comments
 (0)