summaryrefslogtreecommitdiff
path: root/lib/libm/__sinl.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/__sinl.c
parent4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff)
feat: clang-tidy fixes
Diffstat (limited to 'lib/libm/__sinl.c')
-rw-r--r--lib/libm/__sinl.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libm/__sinl.c b/lib/libm/__sinl.c
index 6b57783e..ecc23a1a 100644
--- a/lib/libm/__sinl.c
+++ b/lib/libm/__sinl.c
@@ -12,7 +12,9 @@
* ====================================================
*/
-#include "libm.h"
+#include "libm.h" // for __sinl
+
+#include <float.h> // for LDBL_MANT_DIG, LDBL_MAX_EXP
#if (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
#if LDBL_MANT_DIG == 64
@@ -35,8 +37,10 @@ static const double S2 = 0.0083333333333333332, /* 0x11111111111111.0p-59 */
S6 = 1.6059006598854211e-10, /* 0x161242b90243b5.0p-85 */
S7 = -7.6429779983024564e-13, /* -0x1ae42ebd1b2e00.0p-93 */
S8 = 2.6174587166648325e-15; /* 0x179372ea0b3f64.0p-101 */
-#define POLY(z) \
- (S2 + z * (S3 + z * (S4 + z * (S5 + z * (S6 + z * (S7 + z * S8))))))
+#define POLY(z) \
+ (S2 + \
+ (z) * (S3 + \
+ (z) * (S4 + (z) * (S5 + (z) * (S6 + (z) * (S7 + (z) * S8))))))
#elif LDBL_MANT_DIG == 113
/*
* ld128 version of __sin.c. See __sin.c for most comments.