Skip to content

Commit 9170d35

Browse files
committed
use sebug_assertions
1 parent 3f7176d commit 9170d35

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

libm/src/math/lgamma_r.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ pub fn lgamma_r(mut x: f64) -> (f64, i32) {
270270
p2 = 1.0 + y * (V1 + y * (V2 + y * (V3 + y * (V4 + y * V5))));
271271
r += -0.5 * y + p1 / p2;
272272
}
273-
#[cfg(feature = "checked")]
273+
#[cfg(debug_assertions)]
274274
_ => unreachable!(),
275-
#[cfg(not(feature = "checked"))]
275+
#[cfg(not(debug_assertions))]
276276
_ => {}
277277
}
278278
} else if ix < 0x40200000 {

libm/src/math/lgammaf_r.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ pub fn lgammaf_r(mut x: f32) -> (f32, i32) {
205205
p2 = 1.0 + y * (V1 + y * (V2 + y * (V3 + y * (V4 + y * V5))));
206206
r += -0.5 * y + p1 / p2;
207207
}
208-
#[cfg(feature = "checked")]
208+
#[cfg(debug_assertions)]
209209
_ => unreachable!(),
210-
#[cfg(not(feature = "checked"))]
210+
#[cfg(not(debug_assertions))]
211211
_ => {}
212212
}
213213
} else if ix < 0x41000000 {

libm/src/math/rem_pio2_large.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ pub(crate) fn rem_pio2_large(x: &[f64], y: &mut [f64], e0: i32, prec: usize) ->
461461
i!(y, 2, =, -fw);
462462
}
463463
}
464-
#[cfg(feature = "checked")]
464+
#[cfg(debug_assertions)]
465465
_ => unreachable!(),
466-
#[cfg(not(feature = "checked"))]
466+
#[cfg(not(debug_assertions))]
467467
_ => {}
468468
}
469469
n & 7

libm/src/math/sincos.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ pub fn sincos(x: f64) -> (f64, f64) {
5151
1 => (c, -s),
5252
2 => (-s, -c),
5353
3 => (-c, s),
54-
#[cfg(feature = "checked")]
54+
#[cfg(debug_assertions)]
5555
_ => unreachable!(),
56-
#[cfg(not(feature = "checked"))]
56+
#[cfg(not(debug_assertions))]
5757
_ => (0.0, 1.0),
5858
}
5959
}

libm/src/math/sincosf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ pub fn sincosf(x: f32) -> (f32, f32) {
115115
1 => (c, -s),
116116
2 => (-s, -c),
117117
3 => (-c, s),
118-
#[cfg(feature = "checked")]
118+
#[cfg(debug_assertions)]
119119
_ => unreachable!(),
120-
#[cfg(not(feature = "checked"))]
120+
#[cfg(not(debug_assertions))]
121121
_ => (0.0, 1.0),
122122
}
123123
}

0 commit comments

Comments
 (0)