From a73b830e87d9adcbeebd9cdbb8f1396f1ebbf75b Mon Sep 17 00:00:00 2001 From: "dbradley%netscape.com" Date: Tue, 20 Aug 2002 12:56:30 +0000 Subject: [PATCH] Bug 160602 - Patch sets FPU precision to 53 bit mantissa. r=khanson, sr=brendan --- js/src/jsnum.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/jsnum.c b/js/src/jsnum.c index a9653e37f49..5e6f2533ce6 100644 --- a/js/src/jsnum.c +++ b/js/src/jsnum.c @@ -441,9 +441,11 @@ static jsdouble NaN; #if !defined __MWERKS__ && defined XP_PC && (defined _M_IX86 || defined __GNUC__) /* + * Set the exception mask to mask all exceptions and set the FPU precision + * to 53 bit mantissa. * On Alpha platform this is handled via Compiler option. */ -#define FIX_FPU() _control87(MCW_EM, MCW_EM) +#define FIX_FPU() _control87(MCW_EM | PC_53, MCW_EM | MCW_PC) #else