use sebug_assertions
This commit is contained in:
parent
c847d46c64
commit
06184b8d10
5 changed files with 10 additions and 10 deletions
|
|
@ -270,9 +270,9 @@ pub fn lgamma_r(mut x: f64) -> (f64, i32) {
|
|||
p2 = 1.0 + y * (V1 + y * (V2 + y * (V3 + y * (V4 + y * V5))));
|
||||
r += -0.5 * y + p1 / p2;
|
||||
}
|
||||
#[cfg(feature = "checked")]
|
||||
#[cfg(debug_assertions)]
|
||||
_ => unreachable!(),
|
||||
#[cfg(not(feature = "checked"))]
|
||||
#[cfg(not(debug_assertions))]
|
||||
_ => {}
|
||||
}
|
||||
} else if ix < 0x40200000 {
|
||||
|
|
|
|||
|
|
@ -205,9 +205,9 @@ pub fn lgammaf_r(mut x: f32) -> (f32, i32) {
|
|||
p2 = 1.0 + y * (V1 + y * (V2 + y * (V3 + y * (V4 + y * V5))));
|
||||
r += -0.5 * y + p1 / p2;
|
||||
}
|
||||
#[cfg(feature = "checked")]
|
||||
#[cfg(debug_assertions)]
|
||||
_ => unreachable!(),
|
||||
#[cfg(not(feature = "checked"))]
|
||||
#[cfg(not(debug_assertions))]
|
||||
_ => {}
|
||||
}
|
||||
} else if ix < 0x41000000 {
|
||||
|
|
|
|||
|
|
@ -461,9 +461,9 @@ pub(crate) fn rem_pio2_large(x: &[f64], y: &mut [f64], e0: i32, prec: usize) ->
|
|||
i!(y, 2, =, -fw);
|
||||
}
|
||||
}
|
||||
#[cfg(feature = "checked")]
|
||||
#[cfg(debug_assertions)]
|
||||
_ => unreachable!(),
|
||||
#[cfg(not(feature = "checked"))]
|
||||
#[cfg(not(debug_assertions))]
|
||||
_ => {}
|
||||
}
|
||||
n & 7
|
||||
|
|
|
|||
|
|
@ -51,9 +51,9 @@ pub fn sincos(x: f64) -> (f64, f64) {
|
|||
1 => (c, -s),
|
||||
2 => (-s, -c),
|
||||
3 => (-c, s),
|
||||
#[cfg(feature = "checked")]
|
||||
#[cfg(debug_assertions)]
|
||||
_ => unreachable!(),
|
||||
#[cfg(not(feature = "checked"))]
|
||||
#[cfg(not(debug_assertions))]
|
||||
_ => (0.0, 1.0),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,9 +115,9 @@ pub fn sincosf(x: f32) -> (f32, f32) {
|
|||
1 => (c, -s),
|
||||
2 => (-s, -c),
|
||||
3 => (-c, s),
|
||||
#[cfg(feature = "checked")]
|
||||
#[cfg(debug_assertions)]
|
||||
_ => unreachable!(),
|
||||
#[cfg(not(feature = "checked"))]
|
||||
#[cfg(not(debug_assertions))]
|
||||
_ => (0.0, 1.0),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue