This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] BZ#15536: Fix ulp(0x0.0p0) for 128-bit IBM long double.


"Carlos O'Donell" <carlos@redhat.com> writes:

> diff --git a/math/libm-test.inc b/math/libm-test.inc
> index 7a6bf09..0b0b0d3 100644
> --- a/math/libm-test.inc
> +++ b/math/libm-test.inc
> @@ -680,7 +680,13 @@ ulp (FLOAT value)
>         /* Fall through...  */
>        case FP_SUBNORMAL:
>          /* The next closest subnormal value is a constant distance away.  */
> +#if defined TEST_LDOUBLE && LDBL_MANT_DIG == 106
> +       /* In 128-bit IBM long double the precision of the type degenerates
> +          to double when we use subnormals.  */
> +       ulp = FUNC(ldexp) (1.0, 1 - (MAX_EXP + (__DBL_MANT_DIG__ - 1)));

Why do you need to use an internal identifier?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]