* mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
(__enan_NI16): Fix another one. (__enan_NBITS): Tidy.
This commit is contained in:
parent
c730e0e7ca
commit
d2c7ccfc5f
@ -1,3 +1,9 @@
|
|||||||
|
2004-01-31 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
|
* mingwex/math/cephes_emath.h (__enan_64): Fix thinko.
|
||||||
|
(__enan_NI16): Fix another one.
|
||||||
|
(__enan_NBITS): Tidy.
|
||||||
|
|
||||||
2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
|
2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
* include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
|
* include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit
|
||||||
|
@ -679,9 +679,13 @@ for( i=M; i<NI-1; i++ )
|
|||||||
|
|
||||||
static __inline__ void __enan_64(unsigned short* nan)
|
static __inline__ void __enan_64(unsigned short* nan)
|
||||||
{
|
{
|
||||||
static const unsigned short nan64[6]
|
|
||||||
= {0, 0, 0, 0xc000, 0xffff, 0};
|
int i;
|
||||||
nan = (unsigned short*) nan64;
|
for( i=0; i<3; i++ )
|
||||||
|
*nan++ = 0;
|
||||||
|
*nan++ = 0xc000;
|
||||||
|
*nan++ = 0x7fff;
|
||||||
|
*nan = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -691,7 +695,7 @@ static __inline__ void __enan_NBITS(unsigned short* nan)
|
|||||||
for( i=0; i<NE-2; i++ )
|
for( i=0; i<NE-2; i++ )
|
||||||
*nan++ = 0;
|
*nan++ = 0;
|
||||||
*nan++ = 0xc000;
|
*nan++ = 0xc000;
|
||||||
*nan++ = 0x7fff;
|
*nan = 0x7fff;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -699,14 +703,13 @@ static __inline__ void __enan_NI16(unsigned short* nan)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
*nan++ = 0;
|
*nan++ = 0;
|
||||||
*nan = 0x7fff;
|
*nan++ = 0x7fff;
|
||||||
*nan = 0;
|
*nan++ = 0;
|
||||||
*nan = 0xc000;
|
*nan++ = 0xc000;
|
||||||
for( i=4; i<NI; i++ )
|
for( i=4; i<NI; i++ )
|
||||||
*nan++ = 0;
|
*nan++ = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* _CEPHES_EMATH_H */
|
#endif /* _CEPHES_EMATH_H */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user