Re: [cc65] Floating point support?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-10-04 19:20:35
On Mon, Oct 04, 2004 at 07:23:18AM +0200, Sidney Cadot wrote:
> Pre-IEEE, the usual thing to do was to have the functions return a
> status. I suppose we could have an FP status byte to collect anomalous
> floating point operations.

The C standard allows setting errno, raising an exception, or just ignoring
the condition for most operations. The standard does not require NaNs and
infinite values, so it may be an option not to implement them, because this
removes all corresponding checks in the math functions resulting in smaller
code size. The TMS320 DSP has this behaviour and it's quite convenient.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Oct 4 19:20:40 2004

This archive was generated by hypermail 2.1.8 : 2004-10-04 19:20:50 CEST