Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.42
 
1.43
 
MAIN:ragge:20060710075526
 
local.c
_>452452 void
 453453 finval(NODE *p)
 454454 {
<> 455+        union { float f; double d; long double l; int i[3]; } u;
  456+
455457         switch (p->n_type) {
 456458         case LDOUBLE:
<>457 -                printf("\t.tfloat\t0t%.20Le\n", p->n_dcon);
  459+                u.i[2] = 0;
  460+                u.l = (long double)p->n_dcon;
  461+                printf("\t.long\t0x%x,0x%x,0x%x\n", u.i[0], u.i[1], u.i[2]);
458462                 break;
 459463         case DOUBLE:
<>460 -                printf("\t.dfloat\t0d%.20e\n", (double)p->n_dcon);
  464+                u.d = (double)p->n_dcon;
  465+                printf("\t.long\t0x%x,0x%x\n", u.i[0], u.i[1]);
461466                 break;
 462467         case FLOAT:
<>463 -                printf("\t.ffloat\t0f%.20e\n", (float)p->n_dcon);
  468+                u.f = (float)p->n_dcon;
  469+                printf("\t.long\t0x%x\n", u.i[0]);
<_464470                 break;
 465471         }
 466472 }
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-07-11 00:55 +0200