[parisc-linux] Re: strtold
Carlos O'Donell
carlos at systemhalted.org
Sat Jan 7 14:07:57 MST 2006
On Mon, Dec 26, 2005 at 02:58:40PM -0500, John David Anglin wrote:
> With libc6 2.3.5-8:
>
> #include <stdlib.h>
> int
> main ()
> {
> printf ("%Lf\n", strtold ("1", NULL));
> return 0;
> }
>
> dave at gsyprf11:~/gcc_test$ gcc -o ld1 ld1.c
> dave at gsyprf11:~/gcc_test$ ./ld1
> 0.000000
strtold will never work, gcc and libc have different sizes for long
double. This is probably a side-effect of this.
If we really want long double to work we need to do something like set
it to be the same as double.
128-bit long double is just going to be a pain, and I don't know how
well the 80-bit long double from IBM supports IEEE modes.
c.
More information about the parisc-linux
mailing list