summaryrefslogtreecommitdiff
path: root/lib/libm/tanhf.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/tanhf.c
parent4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff)
feat: clang-tidy fixes
Diffstat (limited to 'lib/libm/tanhf.c')
-rw-r--r--lib/libm/tanhf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libm/tanhf.c b/lib/libm/tanhf.c
index f4ae759d..d8ec3aa3 100644
--- a/lib/libm/tanhf.c
+++ b/lib/libm/tanhf.c
@@ -1,4 +1,7 @@
-#include "libm.h"
+#include "libm.h" // for FORCE_EVAL
+
+#include <math.h> // for expm1f, tanhf
+#include <stdint.h> // for uint32_t
float tanhf(float x)
{
@@ -7,7 +10,7 @@ float tanhf(float x)
uint32_t i;
} u = { .f = x };
uint32_t w;
- int sign;
+ uint32_t sign;
float t;
/* x = |x| */