Make the softfloat variant compile
This commit is contained in:
parent
f6d6965b37
commit
68f0e74d44
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue