24 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* $Id: float_emul.c,v 1.6 2006/01/14 12:51:59 debug Exp $ |
* $Id: float_emul.c,v 1.7 2006/03/30 19:36:03 debug Exp $ |
28 |
* |
* |
29 |
* Floating point emulation routines. |
* Floating point emulation routines. |
30 |
*/ |
*/ |
142 |
fvp->f = fraction; |
fvp->f = fraction; |
143 |
|
|
144 |
#ifdef IEEE_DEBUG |
#ifdef IEEE_DEBUG |
145 |
fatal("{ ieee: x=%016llx sign=%i exponent=%i frac=%f ", |
fatal("{ ieee: x=%016"PRIx64" sign=%i exponent=%i frac=%f ", |
146 |
(long long)x, sign, exponent, fraction); |
(uint64_t) x, sign, exponent, fraction); |
147 |
#endif |
#endif |
148 |
|
|
149 |
/* TODO: this is awful for exponents of large magnitude. */ |
/* TODO: this is awful for exponents of large magnitude. */ |
274 |
r = 0; |
r = 0; |
275 |
|
|
276 |
#ifdef IEEE_DEBUG |
#ifdef IEEE_DEBUG |
277 |
fatal(" exp=%i, r = %016llx }\n", exponent, (long long)r); |
fatal(" exp=%i, r = %016"PRIx64" }\n", exponent, (uint64_t) r); |
278 |
#endif |
#endif |
279 |
break; |
break; |
280 |
default:/* TODO */ |
default:/* TODO */ |