This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
IS_INF bug?
- To: guile at sourceware dot cygnus dot com
- Subject: IS_INF bug?
- From: Han-Wen Nienhuys <hanwen at cs dot uu dot nl>
- Date: Tue, 9 May 2000 13:19:29 +0200 (CEST)
- Cc: jantien at xs4all dot nl
- Reply-To: hanwen at cs dot uu dot nl
I think the naming of the following macro should be changed to
NONZERO_IS_INF, or something alike. The name is misleading.
/* IS_INF tests its floating point number for infiniteness
*/
#ifndef IS_INF
#define IS_INF(x) ((x) == (x) / 2)
#endif
--
Han-Wen Nienhuys, hanwen@cs.uu.nl ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html