[Top][All Lists]

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

Re: [Gnash-dev] Alignment in AMF data

From: strk
Subject: Re: [Gnash-dev] Alignment in AMF data
Date: Fri, 24 Oct 2008 16:56:23 +0200

On Fri, Oct 24, 2008 at 10:42:56AM -0400, Russ Nelson wrote:
> strk writes:
>  > And don't forget a double is 8 bytes, not 4...
> DOH, I was thinking long, not floating point!  Yes, you need a union
> to do this particular unpacking.  Let the C compiler do its thing.

I committed a patch that just copies the 8 bytes into the memory
the double takes, and calls the amf::swapBytes.

Left a TODO there for possible optimizations, but won't go there
till we have a bigendian build bot.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]