This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The arithmetic support of SCmode and DCmode.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]