|
|
Message-ID: <20260604163148.GH27423@brightrain.aerifal.cx>
Date: Thu, 4 Jun 2026 12:31:49 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] math: include missing float.h in logbl
On Mon, Jun 01, 2026 at 03:21:09PM +0200, Szabolcs Nagy wrote:
> 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.
> ---
> src/math/logbl.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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)
> {
> --
> 2.52.0
Thanks, applying!
Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.