[Mesa-dev] [PATCH 2/7] mesa: move FLT_MAX_EXP to c99_math.h

Emil Velikov emil.l.velikov at gmail.com
Sat Feb 28 03:20:09 PST 2015


On 28/02/15 10:48, Emil Velikov wrote:
> On 28/02/15 00:47, Brian Paul wrote:
>> ---
>>  include/c99_math.h       | 4 ++++
>>  src/mesa/main/compiler.h | 4 ----
>>  2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/include/c99_math.h b/include/c99_math.h
>> index 35173c6..0a49950 100644
>> --- a/include/c99_math.h
>> +++ b/include/c99_math.h
>> @@ -156,5 +156,9 @@ llrintf(float f)
>>  #define M_LOG2E (1.4426950408889634074)
>>  #endif
>>  
>> +#ifndef FLT_MAX_EXP
>> +#define FLT_MAX_EXP 128
>> +#endif
>> +
>>  
> Strictly speaking one can move it to c99_float.h, but I may be nitpicking too much.
> 
Upon closer look at msdn [1] it seems that MSVC 2005 and later have the
define. For the rest of the compiler world, I would assume that they're
all C99 capable/compatible.

-Emil

[1] https://msdn.microsoft.com/en-us/library/6bs3y5ya(v=vs.80).aspx



More information about the mesa-dev mailing list