You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2008/05/27 14:46:00 UTC
svn commit: r660492 - /stdcxx/branches/4.2.x/src/num_put.cpp
Author: faridz
Date: Tue May 27 05:45:59 2008
New Revision: 660492
URL: http://svn.apache.org/viewvc?rev=660492&view=rev
Log:
2008-05-27 Farid Zaripov <fa...@epam.com>
STDCXX-51
* src/num_put.cpp (__rw_fmat_infinite): Enabled processing the sign of the NaN's.
Put 'q' or 's' prefix at the beginning of the "{q|s}nan" word.
Modified:
stdcxx/branches/4.2.x/src/num_put.cpp
Modified: stdcxx/branches/4.2.x/src/num_put.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/num_put.cpp?rev=660492&r1=660491&r2=660492&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/num_put.cpp (original)
+++ stdcxx/branches/4.2.x/src/num_put.cpp Tue May 27 05:45:59 2008
@@ -100,28 +100,24 @@
}
else {
_RWSTD_ASSERT (__rw_isnan (val));
-#if 0
- // disabled since not all platforms correctly handling sign of NaN's
+
if (__rw_signbit (val)) {
*end++ = '-';
}
else if (flags & _RWSTD_IOS_SHOWPOS) {
*end++ = '+';
}
-#endif
const char str [] = "nNaAqQsS";
- *end++ = str [cap + 0];
- *end++ = str [cap + 2];
- *end++ = str [cap + 0];
-#if 0
- // disabled since not all platforms supporting
- // the quiet and signaling NaN's
+
if (__rw_isqnan (val))
*end++ = str [cap + 4];
else if (__rw_issnan (val))
*end++ = str [cap + 6];
-#endif
+
+ *end++ = str [cap + 0];
+ *end++ = str [cap + 2];
+ *end++ = str [cap + 0];
}
return int (end - buf);