* mingwex/math/cephes_emath.h (__enan_64): Fix thinko.

(__enan_NI16): Fix another one.
	(__enan_NBITS): Tidy.
This commit is contained in:
Danny Smith 2004-01-31 08:44:01 +00:00
parent c730e0e7ca
commit d2c7ccfc5f
2 changed files with 19 additions and 10 deletions

View File

@ -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>
* include/stdint.h Fix __STDC_CONSTANT_MACROS for 8 and 16 bit

View File

@ -679,19 +679,23 @@ for( i=M; i<NI-1; i++ )
static __inline__ void __enan_64(unsigned short* nan)
{
static const unsigned short nan64[6]
= {0, 0, 0, 0xc000, 0xffff, 0};
nan = (unsigned short*) nan64;
int i;
for( i=0; i<3; i++ )
*nan++ = 0;
*nan++ = 0xc000;
*nan++ = 0x7fff;
*nan = 0;
return;
}
static __inline__ void __enan_NBITS(unsigned short* nan)
{
int i;
for( i=0; i<NE-2; i++ )
int i;
for( i=0; i<NE-2; i++ )
*nan++ = 0;
*nan++ = 0xc000;
*nan++ = 0x7fff;
*nan = 0x7fff;
return;
}
@ -699,14 +703,13 @@ static __inline__ void __enan_NI16(unsigned short* nan)
{
int i;
*nan++ = 0;
*nan = 0x7fff;
*nan = 0;
*nan = 0xc000;
*nan++ = 0x7fff;
*nan++ = 0;
*nan++ = 0xc000;
for( i=4; i<NI; i++ )
*nan++ = 0;
return;
}
#endif /* _CEPHES_EMATH_H */