[llvm-commits] CVS: llvm/include/llvm/Support/DataTypes.h.in

Jim Laskey jlaskey at apple.com
Wed Nov 8 09:50:22 PST 2006


We know (float)HUGE_VAL works because that's where we started.

-- Jim


On Nov 8, 2006, at 1:41 PM, Chris Lattner wrote:

>>
>> #ifndef HUGE_VALF
>> #ifndef HUGE_VAL
>> #ifndef MAX_FLT
>> #warning don't know how to define HUGE_VALF
>> #else
>> #define HUGE_VALF MAX_FLT
>> #endif
>> #else
>> #define HUGE_VALF (float)HUGE_VAL
>> #endif
>> #endif
>
> More significantly, neither of these will work unless you #include  
> <cmath> and/or float.h.
>
> -Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20061108/b9d77cf0/attachment.bin>


More information about the llvm-commits mailing list