chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] llvm-gcc / clang


From: Felix
Subject: Re: [Chicken-users] llvm-gcc / clang
Date: Fri, 03 Dec 2010 03:32:56 -0500 (EST)

From: Peter Bex <address@hidden>
Subject: Re: [Chicken-users] llvm-gcc / clang
Date: Thu, 2 Dec 2010 19:48:24 +0100

> 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?

It should work with the usual compilers on all supported platforms,
AFAICT these are known to work: gcc (unix), mingw32-gcc, sunpro cc,
clang, llvm-gcc.


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]