summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorAdrian Lees <adrian@aemulor.com>2006-02-09 00:43:32 +0000
committerAdrian Lees <adrian@aemulor.com>2006-02-09 00:43:32 +0000
commit647f7d110c141fcc20d0867fcfea3ad9b9598c59 (patch)
treec72cc401861fecf642c4b17ccc7f2874b352f082 /riscos
parent2a1c97bef57111ef85eb086ba77d2ac8b5e2893d (diff)
downloadnetsurf-647f7d110c141fcc20d0867fcfea3ad9b9598c59.tar.gz
netsurf-647f7d110c141fcc20d0867fcfea3ad9b9598c59.tar.bz2
[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
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui.c9
1 files changed, 6 insertions, 3 deletions
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);