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: [rfa(arm)/rfc] Eliminate HOST_{FLOAT,DOUBLE,...}_FORMAT


>  /* Note that if exponent indicates a NaN, we can't really do anything useful
>> (not knowing if the host has NaN's, or how to build one).  So it will
>> end up as an infinity or something close; that is OK.  */
> 
> 
> Perhaps we should allow each native platform to provide a function
> that produces a NaN for every FP type it supports?  Then utils.c won't
> need to bother about doing things it doesn't know about.


We've already (almost) got this.  sim/common/sim_fpu.[ch] portably 
implements exact IEEE floating point (it ``just'' lacks support for 80 
floats).

	Andrew



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