From a984eb367c032dbe2577f01238c3d1268526be70 Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 25 Dec 2025 19:24:38 +0100 Subject: Clang-tidy fixes --- lib/libm/tanf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libm/tanf.c') diff --git a/lib/libm/tanf.c b/lib/libm/tanf.c index f005908f..9de9ee57 100644 --- a/lib/libm/tanf.c +++ b/lib/libm/tanf.c @@ -39,8 +39,7 @@ float tanf(float x) if (ix <= 0x3f490fda) { /* |x| ~<= pi/4 */ if (ix < 0x39800000) { /* |x| < 2**-12 */ /* raise inexact if x!=0 and underflow if subnormal */ - FORCE_EVAL(ix < 0x00800000 ? x / 0x1p120f : - x + 0x1p120f); + FORCE_EVAL(ix < 0x00800000 ? x / 0x1p120f : x + 0x1p120f); return x; } return __tandf(x, 0); -- cgit v1.2.3