This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA fix conversion of little-byte big-word floats to doublest
On Sat, Dec 04, 2004 at 05:25:21PM +0000, Richard Earnshaw wrote:
> I've just been thinking.
>
> The current code (for both conversions to and from doublest) tries to work
> by normalizing the word order to match the byte order. This clearly makes
> things quite difficult when the number of words involved is variable.
>
> I think it would be a more tractable problem to change all this around so
> that the byte order is normalized to match the word order. This can be
> done by simply repeating a word-normalization step for each word in the
> value.
>
> Thoughts?
That sounds good to me - much simpler.
--
Daniel Jacobowitz