[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
powerpc-apple-darwin8.11.0 ldexpl: cannot handle zero exponents?
From: |
Simon Josefsson |
Subject: |
powerpc-apple-darwin8.11.0 ldexpl: cannot handle zero exponents? |
Date: |
Tue, 09 Dec 2008 10:44:51 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) |
espresso:~/daily/gnulib/dummy-0/gltests jas$ ./test-ldexpl
test-ldexpl.c:99: assertion failed
Abort trap
espresso:~/daily/gnulib/dummy-0/gltests jas$
The code reads:
x = 1.73205L;
y = ldexpl (x, 0); ASSERT (y == x);
Printing the values yield:
x 1.732050 y -0.000000
I guess the Mac OS X 10.4 ldexpl implementation doesn't handle zero
exponents properly?
/Simon
configure:63837: checking whether ldexpl() can be used without linking with libm
configure:63865: gcc -std=gnu99 -o conftest -g -O2 -I/opt/local/include
conftest.c >&5
configure:63872: $? = 0
configure:63893: result: yes
configure:63967: checking whether ldexpl works
configure:64002: gcc -std=gnu99 -o conftest -g -O2 -I/opt/local/include
conftest.c >&5
configure:64006: $? = 0
configure:64012: ./conftest
configure:64016: $? = 0
configure:64034: result: yes
configure:64051: checking whether ldexpl is declared
configure:64081: gcc -std=gnu99 -c -g -O2 -I/opt/local/include conftest.c >&5
configure:64088: $? = 0
configure:64103: result: yes
- powerpc-apple-darwin8.11.0 ldexpl: cannot handle zero exponents?,
Simon Josefsson <=