2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and "nan" processing for systems that have long double support.
This commit is contained in:
parent
e9154015a0
commit
1012585f1f
|
@ -1,3 +1,8 @@
|
|||
2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* libc/stdio/vfprintf.c (_VFPRINTF_R): Fix up "inf" and
|
||||
"nan" processing for systems that have long double support.
|
||||
|
||||
2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* libc/sys/linux/sys/types.h (int8_t): Add type.
|
||||
|
|
|
@ -849,12 +849,18 @@ reswitch: switch (ch) {
|
|||
if (tmp == 2) {
|
||||
if (_fpvalue < 0)
|
||||
sign = '-';
|
||||
cp = "Inf";
|
||||
if (ch == 'E' || ch == 'F' || ch == 'G')
|
||||
cp = "INF";
|
||||
else
|
||||
cp = "inf";
|
||||
size = 3;
|
||||
break;
|
||||
}
|
||||
if (tmp == 1) {
|
||||
cp = "NaN";
|
||||
if (ch == 'E' || ch == 'F' || ch == 'G')
|
||||
cp = "NAN";
|
||||
else
|
||||
cp = "nan";
|
||||
size = 3;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue