mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 02:50:25 +08:00
Print sign of NaN values.
This commit is contained in:
parent
105436dead
commit
beb17b264b
@ -1245,6 +1245,8 @@ reswitch: switch (ch) {
|
||||
break;
|
||||
}
|
||||
if (isnan (_fpvalue)) {
|
||||
if (signbit (_fpvalue))
|
||||
sign = '-';
|
||||
if (ch <= 'G') /* 'A', 'E', 'F', or 'G' */
|
||||
cp = "NAN";
|
||||
else
|
||||
@ -1276,6 +1278,8 @@ reswitch: switch (ch) {
|
||||
break;
|
||||
}
|
||||
if (expt == 1) {
|
||||
if (signbit (_fpvalue))
|
||||
sign = '-';
|
||||
if (ch <= 'G') /* 'A', 'E', 'F', or 'G' */
|
||||
cp = "NAN";
|
||||
else
|
||||
|
@ -970,6 +970,8 @@ reswitch: switch (ch) {
|
||||
break;
|
||||
}
|
||||
if (isnan (_fpvalue)) {
|
||||
if (signbit (_fpvalue))
|
||||
sign = L'-';
|
||||
if (ch <= L'G') /* 'A', 'E', 'F', or 'G' */
|
||||
cp = L"NAN";
|
||||
else
|
||||
@ -1001,6 +1003,8 @@ reswitch: switch (ch) {
|
||||
break;
|
||||
}
|
||||
if (expt == 1) {
|
||||
if (signbit (_fpvalue))
|
||||
sign = L'-';
|
||||
if (ch <= L'G') /* 'A', 'E', 'F', or 'G' */
|
||||
cp = L"NAN";
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user