From e601f258057551b704b1ec948d086da19b6726ae Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 30 Jun 2025 00:17:33 +0200 Subject: [PATCH] x87: Fix the rounding_modes warnings. --- src/cpu/x87_ops.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpu/x87_ops.h b/src/cpu/x87_ops.h index c60a0d171..b134bf8fc 100644 --- a/src/cpu/x87_ops.h +++ b/src/cpu/x87_ops.h @@ -52,7 +52,9 @@ extern void fpu_log(const char *fmt, ...); extern double exp_pow_table[0x800]; +#ifndef X87_INLINE_ASM static int rounding_modes[4] = { FE_TONEAREST, FE_DOWNWARD, FE_UPWARD, FE_TOWARDZERO }; +#endif #define ST(x) cpu_state.ST[((cpu_state.TOP + (x)) & 7)]