summaryrefslogtreecommitdiffstats
path: root/vendor/libm/src/math/ilogb.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libm/src/math/ilogb.rs')
-rw-r--r--vendor/libm/src/math/ilogb.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/libm/src/math/ilogb.rs b/vendor/libm/src/math/ilogb.rs
index 0a380b7ef..7d74dcfb6 100644
--- a/vendor/libm/src/math/ilogb.rs
+++ b/vendor/libm/src/math/ilogb.rs
@@ -1,6 +1,7 @@
const FP_ILOGBNAN: i32 = -1 - 0x7fffffff;
const FP_ILOGB0: i32 = FP_ILOGBNAN;
+#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn ilogb(x: f64) -> i32 {
let mut i: u64 = x.to_bits();
let e = ((i >> 52) & 0x7ff) as i32;