summaryrefslogtreecommitdiffstats
path: root/vendor/libm/src/math/expf.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libm/src/math/expf.rs')
-rw-r--r--vendor/libm/src/math/expf.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/libm/src/math/expf.rs b/vendor/libm/src/math/expf.rs
index 09323ec8d..a53aa90a6 100644
--- a/vendor/libm/src/math/expf.rs
+++ b/vendor/libm/src/math/expf.rs
@@ -30,7 +30,6 @@ const P2: f32 = -2.7667332906e-3; /* -0xb55215.0p-32 */
///
/// Calculate the exponential of `x`, that is, *e* raised to the power `x`
/// (where *e* is the base of the natural system of logarithms, approximately 2.71828).
-#[inline]
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn expf(mut x: f32) -> f32 {
let x1p127 = f32::from_bits(0x7f000000); // 0x1p127f === 2 ^ 127
@@ -71,7 +70,7 @@ pub fn expf(mut x: f32) -> f32 {
/* if |x| > 0.5 ln2 */
if hx > 0x3f851592 {
/* if |x| > 1.5 ln2 */
- k = (INV_LN2 * x + HALF[sign as usize]) as i32;
+ k = (INV_LN2 * x + i!(HALF, sign as usize)) as i32;
} else {
k = 1 - sign - sign;
}