[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] llvm-gcc / clang
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] llvm-gcc / clang |
Date: |
Thu, 2 Dec 2010 19:48:24 +0100 |
User-agent: |
Mutt/1.4.2.3i |
On Thu, Dec 02, 2010 at 04:16:21PM +0100, Thomas Chust wrote:
> what about using
>
> #include <math.h>
> [...]
> if (isnan(x)) ...
>
> or maybe
>
> [...]
> if (fpclassify(x) == FP_NAN) ...
>
> instead of a comparison? I would expect the compiler to inline these
> calls and produce equally efficient code as for a comparison operation
> and it might be a bit more portable to do it this way.
This looks nice. I didn't know about those. When I looked it up, it
said that both are C99, which leads me to the question: do we have an
"official" standpoint about what C level Chicken needs?
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth