summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2026-06-01 15:21:09 +0200
committerRich Felker <dalias@aerifal.cx>2026-06-04 10:05:29 -0400
commitaf839d4381156d480203448e17d1275c4a512bd6 (patch)
treeb4acf6985b263d7c6b374a813429b10e33b0cc04
parent50979c5bc89a7b02023e5c0a5ea1ca4da8616a91 (diff)
downloadmusl-af839d4381156d480203448e17d1275c4a512bd6.tar.gz
math: include missing float.h in logbl
LDBL_* macros were not defined in logbl. the code happens to be correct without them, but when the long double format matches double the intention was to tail call logb.
-rw-r--r--src/math/logbl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/logbl.c b/src/math/logbl.c
index 962973a7..82dba942 100644
--- a/src/math/logbl.c
+++ b/src/math/logbl.c
@@ -1,4 +1,5 @@
#include <math.h>
+#include <float.h>
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
long double logbl(long double x)
{