| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
| Sender: | rich AT phekda DOT freeserve DOT co DOT uk |
| Message-ID: | <3FA566DA.2CB32063@phekda.freeserve.co.uk> |
| Date: | Sun, 02 Nov 2003 20:19:38 +0000 |
| From: | Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk> |
| X-Mailer: | Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) |
| X-Accept-Language: | de,fr |
| MIME-Version: | 1.0 |
| To: | djgpp-workers AT delorie DOT com |
| Subject: | Re: isfinite optimisation |
| References: | <200311011224 DOT hA1COZGn000429 AT speedy DOT ludd DOT luth DOT se> |
| Reply-To: | djgpp-workers AT delorie DOT com |
Hello. ams AT ludd DOT luth DOT se wrote: > > Hello. > > I've thought of a small optimisation of isfinite(). [snip] > #define isfinite(x) ((fpclassify(x) & (FP_NORMAL|FP_SUBNORMAL|FP_ZERO)) != 0) [snip] > The second version is much better. Plus the coder that needs some > other combination of the type of numbers can use the same idea. > > If nobody complains I'll commit this in a week. Looks good. Please do commit it then. Thanks, bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ] "You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |