summaryrefslogtreecommitdiff
path: root/lib/libm/exp.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-09 23:14:53 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-09 23:14:53 +0100
commit169daa11155988a210fac949297381743f3cb400 (patch)
tree602ef5df5ae9ea075ab3d5dac3c8ad60da1ea2cc /lib/libm/exp.c
parent4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff)
feat: clang-tidy fixes
Diffstat (limited to 'lib/libm/exp.c')
-rw-r--r--lib/libm/exp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libm/exp.c b/lib/libm/exp.c
index cbcd7623..088a0cbb 100644
--- a/lib/libm/exp.c
+++ b/lib/libm/exp.c
@@ -5,10 +5,11 @@
* SPDX-License-Identifier: MIT
*/
-#include <math.h>
-#include <stdint.h>
-#include "libm.h"
-#include "exp_data.h"
+#include "exp_data.h" // for __exp_data, exp_data, EXP_POLY_ORDER, EXP_TABL...
+#include "libm.h" // for eval_as_double, asuint64, asdouble, WANT_ROUNDING
+
+#include <math.h> // for double_t, INFINITY, exp
+#include <stdint.h> // for uint64_t, uint32_t
#define N (1 << EXP_TABLE_BITS)
#define InvLn2N __exp_data.invln2N
@@ -91,8 +92,7 @@ double exp(double x)
return 1.0 + x;
if (asuint64(x) >> 63)
return __math_uflow(0);
- else
- return __math_oflow(0);
+ return __math_oflow(0);
}
/* Large x is special cased below. */
abstop = 0;