diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 23:14:53 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 23:14:53 +0100 |
| commit | 169daa11155988a210fac949297381743f3cb400 (patch) | |
| tree | 602ef5df5ae9ea075ab3d5dac3c8ad60da1ea2cc /lib/libm/tanhf.c | |
| parent | 4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff) | |
feat: clang-tidy fixes
Diffstat (limited to 'lib/libm/tanhf.c')
| -rw-r--r-- | lib/libm/tanhf.c | 7 |
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| */ |
