Pre-calculate pow table for FXTRACT instruction

This commit is contained in:
Cacodemon345
2025-03-20 21:52:48 +06:00
parent 00c97dac1c
commit a9c97abfb6
4 changed files with 14 additions and 1 deletions

View File

@@ -36,6 +36,8 @@ extern void fpu_log(const char *fmt, ...);
# endif
#endif
extern double exp_pow_table[0x800];
static int rounding_modes[4] = { FE_TONEAREST, FE_DOWNWARD, FE_UPWARD, FE_TOWARDZERO };
#define ST(x) cpu_state.ST[((cpu_state.TOP + (x)) & 7)]