* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr39824.c
blob362fb17b83c57e63399f10e7b00b9d50758e0eaf
1 static const double internalEndianMagic = 7.949928895127363e-275;
2 static const unsigned char ieee_754_mantissa_mask[] = { 0x00, 0x0F, 0xFF, 0xFF,
3 0xFF, 0xFF, 0xFF, 0xFF };
4 static inline int
5 trio_isnan (double number)
7 int has_mantissa = 0;
8 unsigned int i;
9 unsigned char current;
10 for (i = 0; i < (unsigned int)sizeof(double); i++)
12 current = ((unsigned char *)&number)[(((unsigned char
13 *)&internalEndianMagic)[7-(i)])];
14 has_mantissa |= (current & ieee_754_mantissa_mask[i]);
16 return has_mantissa;
18 void
19 xmlXPathEqualNodeSetFloat(int nodeNr, double v)
21 int i;
22 for (i=0; i<nodeNr; i++)
23 if (!trio_isnan(v))
24 break;