On Sun, Aug 26, 2007 at 03:14:13PM +0000, Chad Musick wrote:

>       float   stream::read_fixed()
>       {
> +#if 0 /* Chad */
>               m_unused_bits = 0;
>               int32_t val = m_input->read_le32();
>               return (float) val / 65536.0f;
> +#else
> +             align();
> +             return static_cast<float> (static_cast<double> 
> (static_cast<long int> (m_input->read_le32())) / 65536.0f);
> +#endif /* Chad */
>       }

Have align() just set m_unused_bits = 0 and inlined to get the same performance.
Should be all ok, and something a bit faster...

--strk;


_______________________________________________
Gnash-commit mailing list
Gnash-commit@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to