[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Weird embedded literal number/compiler issue
- From: Tim Maxwell <timmaxw@...>
- Date: Sun, 10 Aug 2008 17:17:15 -0700
In the past, the header contained a sample lua_Number that was
testing this. However, it turned out that different compilers created
different bit patterns (usually the difference was in the last bit).
So, it was not robust.
Unfortunately, a sample lua_Number was the only solution that I could
think of. Would the least-significant-bit issue go away if the
correct value was chosen for the constant? I believe that there are
some values that IEEE 754 can represent exactly...
I started writing one such tool but never finished because it was too
complicated to cater for all needs.
What needs did you see? It seems to me that number format conversion
is the main issue.