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
2 changed files with 13 additions and 2 deletions
|
@ -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>
|
2005-10-14 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* libc/sys/linux/sys/types.h (int8_t): Add type.
|
* libc/sys/linux/sys/types.h (int8_t): Add type.
|
||||||
|
|
|
@ -849,12 +849,18 @@ reswitch: switch (ch) {
|
||||||
if (tmp == 2) {
|
if (tmp == 2) {
|
||||||
if (_fpvalue < 0)
|
if (_fpvalue < 0)
|
||||||
sign = '-';
|
sign = '-';
|
||||||
cp = "Inf";
|
if (ch == 'E' || ch == 'F' || ch == 'G')
|
||||||
|
cp = "INF";
|
||||||
|
else
|
||||||
|
cp = "inf";
|
||||||
size = 3;
|
size = 3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (tmp == 1) {
|
if (tmp == 1) {
|
||||||
cp = "NaN";
|
if (ch == 'E' || ch == 'F' || ch == 'G')
|
||||||
|
cp = "NAN";
|
||||||
|
else
|
||||||
|
cp = "nan";
|
||||||
size = 3;
|
size = 3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue