FPU rounding modes now have effect in FADD double precision. Fixes rendering in Interstate '76.
This commit is contained in:
parent
ea13ae015b
commit
986476b9db
4 changed files with 75 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue