Make the softfloat variant compile

This commit is contained in:
martin 2016-03-26 07:21:11 +00:00
parent f6d6965b37
commit 68f0e74d44
2 changed files with 4 additions and 4 deletions

View File

@ -98,10 +98,10 @@ __floatdidf(di_int a)
/* a is now rounded to DBL_MANT_DIG bits */
}
double_bits fb;
fb.u.high = ((su_int)s & 0x80000000) | /* sign */
fb.u.s.high = ((su_int)s & 0x80000000) | /* sign */
((e + 1023) << 20) | /* exponent */
((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
fb.u.low = (su_int)a; /* mantissa-low */
fb.u.s.low = (su_int)a; /* mantissa-low */
return fb.f;
}
#endif

View File

@ -98,9 +98,9 @@ __floatundidf(du_int a)
/* a is now rounded to DBL_MANT_DIG bits */
}
double_bits fb;
fb.u.high = ((e + 1023) << 20) | /* exponent */
fb.u.s.high = ((e + 1023) << 20) | /* exponent */
((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
fb.u.low = (su_int)a; /* mantissa-low */
fb.u.s.low = (su_int)a; /* mantissa-low */
return fb.f;
}
#endif