From 647f7d110c141fcc20d0867fcfea3ad9b9598c59 Mon Sep 17 00:00:00 2001 From: Adrian Lees Date: Thu, 9 Feb 2006 00:43:32 +0000 Subject: [project @ 2006-02-09 00:43:32 by adrianl] Disable trapping of FP underflows (raised erroneously by FPEv4.09-4.11) svn path=/import/netsurf/; revision=2066 --- riscos/gui.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'riscos') diff --git a/riscos/gui.c b/riscos/gui.c index 8deca0dc2..d659eaf36 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -266,9 +266,12 @@ void gui_init(int argc, char** argv) char *nsdir_temp; /* re-enable all FPU exceptions/traps except inexact operations, - * which we're not interested in - UnixLib disables all FP - * exceptions by default */ - _FPU_SETCW(_FPU_IEEE & ~_FPU_MASK_PM); + * which we're not interested in, and underflow which is incorrectly + * raised when converting an exact value of 0 from double-precision + * to single-precision on FPEmulator v4.09-4.11 (MVFD F0,#0:MVFS F0,F0) + * - UnixLib disables all FP exceptions by default */ + + _FPU_SETCW(_FPU_IEEE & ~(_FPU_MASK_PM | _FPU_MASK_UM)); xhourglass_start(1); -- cgit v1.2.3