[parisc-linux-cvs] glibc fp change
Paul Bame
bame@fc.hp.com
Thu, 12 Apr 2001 15:46:33 -0600
need to clear the exception bits, not the exception enable bits
Index: fclrexcpt.c
===================================================================
RCS file: /home/cvs/parisc/glibc/sysdeps/hppa/fpu/fclrexcpt.c,v
retrieving revision 1.1
diff -u -r1.1 fclrexcpt.c
--- fclrexcpt.c 2000/08/29 15:30:14 1.1
+++ fclrexcpt.c 2001/04/12 21:35:38
@@ -29,7 +29,7 @@
__asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw));
/* Clear all the relevant bits. */
- sw[0] &= ~(excepts & FE_ALL_EXCEPT);
+ sw[0] &= ~(excepts & FE_ALL_EXCEPT) << 27;
__asm__ ("fldd 0(%0),%%fr0" : : "r" (sw));
/* Success. */