This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFC] New function to convert floating-point types


   Date: Mon, 29 Oct 2001 15:20:52 -0500
   From: Andrew Cagney <ac131313@cygnus.com>

   > Any objections to checking this in?

   Not from me.

So I went ahead and committed it :-)

   --

   This prodded me to think about what DOUBLEST should be changed to.  Up 
   until now I'd been thinking of some sort of generic floating point type. 
     However, looking at your case suggests instead something like:

	   struct doublest
	     {
	       char value[a-large-number];
	       const struct floatformat *format;
	     };

   Convert to DOUBLEST would just leave the format as-is.  Only when a 
   conversion was really needed would it be converted.

Hmm.  I see DOUBLEST as a host-specific thing.  In the ideal case
target-dependent code wouldn't need DOUBLEST at all.

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]