
John Maddock wrote:
Johan Råde wrote:
Here is a new version, with a pinch of paranoia added. There are no floating point comparisons at all, except for a few == 0 and != 0. Therefore I expect it to be immune against optimizing compilers.
(I have added a cpp file to avoid ODR violations. It may eventually be possible to remove the cpp file, if we can turn the constants into compile time constants. I bit of ifdef logic will be needed for that.)
(This version does not undefine any macros either.)
It works for Intel/Win32, I haven't been able to build it on either HP or with Intel/Linux due to endless compiler errors inside the system's math.h.
I haven't had a chance yet to see what might be wrong.
John.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
I know what is wrong. I'll send you a new version. --Johan