Re: [cc65] Floating point support?

From: Marc Rintsch <marc1rintsch.de>
Date: 2004-09-28 09:33:57
Hi,

> > Compared to the IEEE formats, the sign bit is in a different place -
> > but there is much to be said for this scheme
>
> AFAIR, IEEE 754 does *not* tell use the format of the FP values! It only
> defines the "blocks" we have to define (sign, fractional part,
> exponent), and how these are handled. It does not define if LSB first or
> MSB first is used, or the order of the blocks!

I always thought one benefit of the IEEE format is, that it's designed to 
implement comparisons (<, >, =) of n-bit floats as comparisons of n-bit 
signed integers?  That's only possible if the MSB is the sign bit.  The code 
to compare 4 byte signed ints is already in the libs.

Ciao,
 Marc 'BlackJack' Rintsch
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Sep 28 09:34:01 2004

This archive was generated by hypermail 2.1.8 : 2004-09-28 09:34:10 CEST