This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: Patch gcc-4.0 should not apply mathematical associative rules for addition or multiplication


On Wed, Oct 06, 2004 at 05:05:08PM -0700, Fariborz Jahanian wrote:
> + static const double C = 0x1.0p1023;

Also, 2**1023 is not a good number to choose at random.  It will
fail for targets that use a smaller "double", like some versions
of SH.  Just use DBL_MAX instead.


r~


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