diff options
Diffstat (limited to 'ports')
-rw-r--r-- | ports/ChangeLog | 4 | ||||
-rw-r--r-- | ports/sysdeps/ia64/fpu/printf_fphex.c | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/ports/ChangeLog b/ports/ChangeLog index 9b638017f8..d1875f4fd9 100644 --- a/ports/ChangeLog +++ b/ports/ChangeLog @@ -1,3 +1,7 @@ +2013-19-04 Alan Modra <amodra@gmail.com> + + * sysdeps/ia64/fpu/printf_fphex.c: Adjust for fpnum change. + 2013-09-02 Mike Frysinger <vapier@gentoo.org> * sysdeps/unix/sysv/linux/hppa/syscalls.list (fanotify_mark): New diff --git a/ports/sysdeps/ia64/fpu/printf_fphex.c b/ports/sysdeps/ia64/fpu/printf_fphex.c index ca021427ec..0698cdad10 100644 --- a/ports/sysdeps/ia64/fpu/printf_fphex.c +++ b/ports/sysdeps/ia64/fpu/printf_fphex.c @@ -25,9 +25,11 @@ do { \ /* The "strange" 80 bit format on ia64 has an explicit \ leading digit in the 64 bit mantissa. */ \ unsigned long long int num; \ + union ieee854_long_double u; \ + u.d = fpnum.ldbl; \ \ - num = (((unsigned long long int) fpnum.ldbl.ieee.mantissa0) << 32 \ - | fpnum.ldbl.ieee.mantissa1); \ + num = (((unsigned long long int) u.ieee.mantissa0) << 32 \ + | u.ieee.mantissa1); \ \ zero_mantissa = num == 0; \ \ @@ -49,8 +51,8 @@ do { \ \ /* We have 3 bits from the mantissa in the leading nibble. \ Therefore we are here using `IEEE854_LONG_DOUBLE_BIAS + 3'. */ \ - exponent = fpnum.ldbl.ieee.exponent; \ - \ + exponent = u.ieee.exponent; \ + \ if (exponent == 0) \ { \ if (zero_mantissa) \ |