patch-2.3.16 linux/arch/sparc/math-emu/sfp-machine.h
Next file: linux/arch/sparc/mm/Makefile
Previous file: linux/arch/sparc/math-emu/math.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Tue Aug 31 11:23:30 1999
- Orig file:
v2.3.15/linux/arch/sparc/math-emu/sfp-machine.h
- Orig date:
Mon Aug 2 22:07:16 1999
diff -u --recursive --new-file v2.3.15/linux/arch/sparc/math-emu/sfp-machine.h linux/arch/sparc/math-emu/sfp-machine.h
@@ -31,7 +31,7 @@
#define _FP_I_TYPE long
#define _FP_MUL_MEAT_S(R,X,Y) \
- _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y)
+ _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm)
#define _FP_MUL_MEAT_D(R,X,Y) \
_FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm)
#define _FP_MUL_MEAT_Q(R,X,Y) \
@@ -181,9 +181,9 @@
/* Obtain the current rounding mode. */
#ifndef FP_ROUNDMODE
#ifdef __SMP__
-#define FP_ROUNDMODE ((current->tss.fsr >> 30) & 0x3)
+#define FP_ROUNDMODE ((current->thread.fsr >> 30) & 0x3)
#else
-#define FP_ROUNDMODE ((last_task_used_math->tss.fsr >> 30) & 0x3)
+#define FP_ROUNDMODE ((last_task_used_math->thread.fsr >> 30) & 0x3)
#endif
#endif
@@ -197,9 +197,9 @@
#define FP_HANDLE_EXCEPTIONS return _fex
#ifdef __SMP__
-#define FP_INHIBIT_RESULTS ((current->tss.fsr >> 23) & _fex)
+#define FP_INHIBIT_RESULTS ((current->thread.fsr >> 23) & _fex)
#else
-#define FP_INHIBIT_RESULTS ((last_task_used_math->tss.fsr >> 23) & _fex)
+#define FP_INHIBIT_RESULTS ((last_task_used_math->thread.fsr >> 23) & _fex)
#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)