Graham Stephens [gra...@thestephensdomain.com] wrote: > Your code runs fine under the gcc version in OpenBSD 5.3. >
So you get 1 and not 0 from the top two lines of ceill output? Nothing has changed in /usr/src/lib/libm/src/ld80/s_ceill.c since 5.3 and the supporting headers have not changed in a way that should affect ceill. I get '0' with both current system GCC and ports clang. This requires stepping through each line of ceill to see where things go haywire. I gotta say, the asm implemetnation of ceil seems much easier to follow than the C implementation of ceill.