The union trick is not defined in the standard, but apparently supported by GCC.
"""The practice of reading from a different union member than the one most recently written to (called “type-punning”) is common. Even with -fstrict-aliasing, type-punning is allowed, provided the memory is accessed through the union type.""" I don't know if this applies to MSVC. http://codereview.chromium.org/5007/diff/1/11 File src/checks.h (right): http://codereview.chromium.org/5007/diff/1/11#newcode172 Line 172: if (*exp != *val) { The correct way of forcing 64-bit FPU is to use "volatile". http://codereview.chromium.org/5007 --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
