mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-01 18:31:16 +00:00
fix fp_do_sgn1() for "double"-targets
This commit is contained in:
parent
5b950fa2ef
commit
3630404307
@ -923,9 +923,14 @@ PRIVATE inline fpu_extended fp_do_expm1(fpu_extended x)
|
||||
|
||||
PRIVATE inline fpu_extended fp_do_sgn1(fpu_extended x)
|
||||
{
|
||||
#if USE_LONG_DOUBLE || USE_QUAD_DOUBLE
|
||||
fp_declare_init_shape(sxp, x, extended);
|
||||
sxp->ieee_nan.exponent = FP_EXTENDED_EXP_MAX;
|
||||
sxp->ieee_nan.one = 1;
|
||||
#else
|
||||
fp_declare_init_shape(sxp, x, double);
|
||||
sxp->ieee_nan.exponent = FP_DOUBLE_EXP_MAX;
|
||||
#endif
|
||||
sxp->ieee_nan.quiet_nan = 0;
|
||||
sxp->ieee_nan.mantissa0 = 0;
|
||||
sxp->ieee_nan.mantissa1 = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user