FPU rounding modes now have effect in FADD double precision. Fixes rendering in Interstate '76.

This commit is contained in:
TomW 2015-09-21 21:54:43 +01:00
commit 986476b9db
4 changed files with 75 additions and 0 deletions

View file

@ -1,7 +1,10 @@
#include <math.h>
#include <fenv.h>
#define fplog 0
static int rounding_modes[4] = {FE_TONEAREST, FE_DOWNWARD, FE_UPWARD, FE_TOWARDZERO};
#define ST(x) ST[((TOP+(x))&7)]
#define C0 (1<<8)