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] |
Alan Modra <amodra@bigpond.net.au> writes: > This fixes a couple of fp-bit.c corner cases I noticed. In pack_d, I > believe it's possible for rounding to bump the exponent, leading to a > NaN being generated rather than Inf. Moving the exponent overflow check > later catches this case. Note that EXPMAX == 2*EXPBIAS+1 in all fp > formats, so testing (exp = src->normal_exp + EXPBIAS) >= EXPMAX is > equivalent to testing src->normal_exp > EXPBIAS. Do you have any testcase for this that can be added to the testsuite? Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |