> +bool GradientGlowFilter::read(stream* in)
> +{
> +    bool count = in->read_u8(); // How many colorings.

Any reason for 'count' to be bool?


On 8/26/07, strk <[EMAIL PROTECTED]> wrote:
> 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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/gnash-commit
>


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to