[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-float fails on ppc64 because DBL_MIN_EXP < LDBL_MIN_EXP
From: |
Bruno Haible |
Subject: |
Re: test-float fails on ppc64 because DBL_MIN_EXP < LDBL_MIN_EXP |
Date: |
Wed, 31 Aug 2011 19:04:08 +0200 (MEST) |
Jim Meyering wrote:
> I propose to comment out that test for now, just prior
> to the coreutils-8.13 pre-release snapshot.
But you are not done with commenting out the assertion.
The programs 'printf', 'seq', and 'sort' assume that a 'double' number
can be losslessly converted to a 'long double'. On platforms where this
is not the case, you will need to use a
union { double d; long double ld; }
instead of a "long double" value. Otherwise the programs can not read
and compute with numbers between 1e-307 and 1e-292.
Bruno
- Re: test-float fails on ppc64 because DBL_MIN_EXP < LDBL_MIN_EXP,
Bruno Haible <=