aboutsummaryrefslogtreecommitdiff
path: root/src/math/asinh.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/asinh.rs')
-rw-r--r--src/math/asinh.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/asinh.rs b/src/math/asinh.rs
index 1429535..0abd80c 100644
--- a/src/math/asinh.rs
+++ b/src/math/asinh.rs
@@ -7,6 +7,7 @@ const LN2: f64 = 0.693147180559945309417232121458176568; /* 0x3fe62e42, 0xfefa3
///
/// Calculates the inverse hyperbolic sine of `x`.
/// Is defined as `sgn(x)*log(|x|+sqrt(x*x+1))`.
+#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn asinh(mut x: f64) -> f64 {
let mut u = x.to_bits();
let e = ((u >> 52) as usize) & 0x7ff;