[Vm-dev] fdlibm is not C99 conformant
David T. Lewis
lewis at mail.msen.com
Wed Dec 29 21:58:57 UTC 2010
On Wed, Dec 29, 2010 at 09:21:29PM +0100, Nicolas Cellier wrote:
> I suggest using replacements for __HI() and __LO() without illegal
> pointer dereferencing.
> One stupid possibility is to use an explicit memory copy, like in this
> example: (see test_fdlibm.c attachment)
> I've tested with:
> gcc -m64 -Wall -02 -D__LITTLE_ENDIAN test_fdlibm.c
> and obtained
> Of course, it'll be a bit slower, but we don't care.
> More problematic is that we would have to change all the fdlibm sources...
But the __HI and __LO macros look fine to me, and they seem to work as
expected (see attached update to your test). Is there an alignment issue
here that I'm missing?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 809 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20101229/e10a5919/test2-0001.c
More information about the Vm-dev