From 169daa11155988a210fac949297381743f3cb400 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 23:14:53 +0100 Subject: feat: clang-tidy fixes --- lib/libm/tgammal.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/libm/tgammal.c') diff --git a/lib/libm/tgammal.c b/lib/libm/tgammal.c index 1ebbfab8..54270091 100644 --- a/lib/libm/tgammal.c +++ b/lib/libm/tgammal.c @@ -48,7 +48,10 @@ * */ -#include "libm.h" +#include "libm.h" // for __polevll + +#include // for LDBL_MANT_DIG, LDBL_MAX_EXP +#include // for fabsl, floorl, powl, expl, sinl, tgammal, INFINITY #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 long double tgammal(long double x) @@ -250,7 +253,7 @@ long double tgammal(long double x) small: /* z==1 if x was originally +-0 */ if (x == 0 && z != 1) - return x / x; + return NAN; if (x < 0.0) { x = -x; q = z / (x * __polevll(x, SN, 8)); -- cgit v1.2.3