This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: The arithmetic support of SCmode and DCmode.
- To: craig at jcb-sc dot com
- Subject: Re: The arithmetic support of SCmode and DCmode.
- From: N8TM at aol dot com
- Date: Tue, 6 Apr 1999 21:12:43 EDT
- CC: toon at moene dot indiv dot nluug dot nl, egcs at egcs dot cygnus dot com
- Reply-To: N8TM at aol dot com
In a message dated 4/6/99 8:44:53 AM Pacific Daylight Time, craig@jcb-sc.com
writes:
> is it indeed the case that c_div.c could just use
> `double' for intermediate computations using the "direct, fast" approach
> gcc uses in optabs.c, and that would solve all the problems?
Yes, with IEEE style double, which has a wider range than single. For
example,
#include <float.h>
#if DBL_MAX_EXP > FLT_MAX_EXP + FLT_MAX_EXP
OK to use direct fast code, promoting all operations from single to double
#else
do it the c_div.c way
#endif