mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 09:24:24 +02:00
- attempt to cleanup a few warnings
- attempt to get git rev info each compile (not just when running cmake)
This commit is contained in:
@@ -287,11 +287,17 @@
|
||||
#endif
|
||||
|
||||
/* We do support the IEC 559 math functionality, real and complex. */
|
||||
#if !defined(__STDC_IEC_559__)
|
||||
#define __STDC_IEC_559__ 1
|
||||
#endif
|
||||
#if !defined(__STDC_IEC_559_COMPLEX__)
|
||||
#define __STDC_IEC_559_COMPLEX__ 1
|
||||
#endif
|
||||
|
||||
/* wchar_t uses ISO 10646-1 (2nd ed., published 2000-09-15) / Unicode 3.1. */
|
||||
#if !defined(__STDC_ISO_10646__)
|
||||
#define __STDC_ISO_10646__ 200009L
|
||||
#endif
|
||||
|
||||
/* This macro indicates that the installed library is the GNU C Library.
|
||||
For historic reasons the value now is 6 and this will stay from now
|
||||
|
@@ -46,7 +46,7 @@ __ieee754_gammaf_r (Simple x, int *signgamp)
|
||||
*signgamp = 0;
|
||||
return (x - x) / (x - x);
|
||||
}
|
||||
if (hx == 0xff800000)
|
||||
if ((u_int32_t)hx == 0xff800000)
|
||||
{
|
||||
/* x == -Inf. According to ISO this is NaN. */
|
||||
*signgamp = 0;
|
||||
|
@@ -163,6 +163,7 @@ static Simple zero= 0.0000000000e+00f;
|
||||
GET_FLOAT_WORD(hx,x);
|
||||
|
||||
/* purge off +-inf, NaN, +-0, and negative arguments */
|
||||
nadj = 0;
|
||||
*signgamp = 1;
|
||||
ix = hx&0x7fffffff;
|
||||
if(ix>=0x7f800000) return x*x;
|
||||
|
Reference in New Issue
Block a user