Re: Real_cst printing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<Primrose.Mbanefo@xxxxxxxxxxxx> writes:

> Ok. I'm working on that. For some reason I can't find the
> real_to_decimal function during linking.

I don't know how you are doing the link, but real_to_decimal is
defined in gcc/real.c.

> I meant something like. Printf ("real number : %f",
> A_MACRO_USED_TO_GET_PRINTABLE_REAL_VALUES(realNumber));

>From print_rtx in gcc/print-rtl.c:

	  char s[60];

	  real_to_decimal (s, CONST_DOUBLE_REAL_VALUE (in_rtx),
			   sizeof (s), 0, 1);
	  fprintf (outfile, " %s", s);

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux