diff --git a/src/cpu/softfloat/softfloatx80.h b/src/cpu/softfloat/softfloatx80.h index 8378169e2..1f96141b4 100644 --- a/src/cpu/softfloat/softfloatx80.h +++ b/src/cpu/softfloat/softfloatx80.h @@ -80,7 +80,11 @@ int floatx80_compare_quiet(floatx80 a, floatx80 b, struct float_status_t *status | for Binary Floating-Point Arithmetic. *----------------------------------------------------------------------------*/ +#ifdef __cplusplus +BX_CPP_INLINE floatx80& floatx80_abs(floatx80 ®) +#else BX_CPP_INLINE floatx80 floatx80_abs(floatx80 reg) +#endif { reg.exp &= 0x7FFF; return reg; @@ -92,7 +96,11 @@ BX_CPP_INLINE floatx80 floatx80_abs(floatx80 reg) | Floating-Point Arithmetic. *----------------------------------------------------------------------------*/ +#ifdef __cplusplus +BX_CPP_INLINE floatx80& floatx80_chs(floatx80 ®) +#else BX_CPP_INLINE floatx80 floatx80_chs(floatx80 reg) +#endif { reg.exp ^= 0x8000; return reg;