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 2/3] PowerPC: remove wrong nearbyintl implementation for, PowerPC64


On Fri, 14 Mar 2014, Adhemerval Zanella wrote:

> +#ifdef TEST_LDOUBLE
> +    /* Check cases where first double is a exact integer higher than 2^52 and
> +       the precision is determined by second long double for IBM long double.  */
> +    TEST_f_f (nearbyint,  34503599627370498.515625L, 34503599627370499.0L),
> +    TEST_f_f (nearbyint,  1192568192774434123539907640624.484375L, 1192568192774434123539907640624.0L),
> +    TEST_f_f (nearbyint, -34503599627370498.515625L, -34503599627370499.0L),
> +    TEST_f_f (nearbyint, -1192568192774434123539907640624.484375L, -1192568192774434123539907640624.0L),
> +#endif

What are the precision requirements on long double for these inputs to be 
representable?  If any require more than 64-bit mantissa, they should be 
conditional appropriately on LDBL_MANT_DIG (which may be 64, 106 or 113).

-- 
Joseph S. Myers
joseph@codesourcery.com


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