Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.1.2, 4.1.3, 4.1.4, 4.2.0, 4.2.1
-
None
-
MSVC and ICC/Windows
-
Incorrect Behavior
Description
The binary representation of NAN's in stdcxx:
#define _RWSTD_FLT_QNAN_BITS { 0, 0, '\xc0', '\xff' } #define _RWSTD_FLT_SNAN_BITS { '\x1', 0, '\x80', '\x7f' } #define _RWSTD_DBL_QNAN_BITS { 0, 0, 0, 0, 0, 0, '\xf8', '\xff' } #define _RWSTD_DBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, '\xf0', '\x7f' } #define _RWSTD_LDBL_QNAN_BITS { 0, 0, 0, 0, 0, 0, '\xf8', '\xff' } #define _RWSTD_LDBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, '\xf0', '\x7f' }
The binary representation of the same things in MSVC STL:
#define _RWSTD_FLT_QNAN_BITS { 0, 0, '\xc0', '\x7f' } #define _RWSTD_FLT_SNAN_BITS { '\x1', 0, '\xc0', '\x7f' } #define _RWSTD_DBL_QNAN_BITS { 0, 0, 0, 0, 0, 0, '\xf8', '\x7f' } #define _RWSTD_DBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, '\xf8', '\x7f' } #define _RWSTD_LDBL_QNAN_BITS { 0, 0, 0, 0, 0, 0, '\xf8', '\x7f' } #define _RWSTD_LDBL_SNAN_BITS { '\x1', 0, 0, 0, 0, 0, '\xf8', '\x7f' }
Attachments
Issue Links
- is related to
-
STDCXX-797 [HP-UX/IPF] NaN has the wrong sign
- Open
-
STDCXX-740 INFINITY config test outputs the different _RWSTD_LDBL_SNAN_BITS values per different runs
- Closed
-
STDCXX-51 infinity, NaN formatted differently on different platforms
- Reopened