[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
This commit is contained in:
Adrian Lees 2006-02-09 00:43:32 +00:00
parent 2a1c97bef5
commit 647f7d110c
1 changed files with 6 additions and 3 deletions

View File

@ -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);