[cfe-commits] r63990 - /cfe/trunk/lib/Headers/tgmath-sofar.h

Chris Lattner sabre at nondot.org
Fri Feb 6 22:40:28 PST 2009


On Feb 6, 2009, at 4:50 PM, Sebastian Redl wrote:

> Chris Lattner wrote:
>> Author: lattner
>> Date: Fri Feb  6 18:47:29 2009
>> New Revision: 63990
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=63990&view=rev
>> Log:
>> start of tgmath, yuck.
>>
>> +#define ceil(x)  __builtin_overload(1, x, ceil, ceil, ceilf)
>>
>
> Yuck, indeed. Anyway, typo in this line? The long double version is
> probably called ceill.

Yes, this is pretty horrible stuff and will probably need to be  
refactored.  I also have to see if __builtin_overload is general  
enough to handle the binary operators.  I suspect it will need  
extensions.

On the plus side, at least this code is not horribly system specific  
like limits.h and stdint.h is :).  It is also the last non-vector  
header clang is missing.  When we have it and the rest of the vector  
stuff, I think we can pull out all the hard coded paths for different  
gcc compiler versions in InitHeaderSearch.cpp.

-Chris



More information about the cfe-commits mailing list