|
@@ -51,7 +51,6 @@ union ieee754dp ieee754dp_fint(int x)
|
|
xm = x;
|
|
xm = x;
|
|
}
|
|
}
|
|
|
|
|
|
-#if 1
|
|
|
|
/* normalize - result can never be inexact or overflow */
|
|
/* normalize - result can never be inexact or overflow */
|
|
xe = DP_MBITS;
|
|
xe = DP_MBITS;
|
|
while ((xm >> DP_MBITS) == 0) {
|
|
while ((xm >> DP_MBITS) == 0) {
|
|
@@ -59,15 +58,6 @@ union ieee754dp ieee754dp_fint(int x)
|
|
xe--;
|
|
xe--;
|
|
}
|
|
}
|
|
return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT);
|
|
return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT);
|
|
-#else
|
|
|
|
- /* normalize */
|
|
|
|
- xe = DP_MBITS + 3;
|
|
|
|
- while ((xm >> (DP_MBITS + 3)) == 0) {
|
|
|
|
- xm <<= 1;
|
|
|
|
- xe--;
|
|
|
|
- }
|
|
|
|
- DPNORMRET1(xs, xe, xm, "fint", x);
|
|
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
|
|
|
|
union ieee754dp ieee754dp_funs(unsigned int u)
|
|
union ieee754dp ieee754dp_funs(unsigned int u)
|