gnash-commit
[Top][All Lists]
Advanced

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

Re: [Gnash-commit] gnash ChangeLog libbase/utility.h server/charac...


From: Benjamin Wolsey
Subject: Re: [Gnash-commit] gnash ChangeLog libbase/utility.h server/charac...
Date: Sun, 15 Jun 2008 14:17:09 +0200

> get_x_scale() always returns a positive scale value no matter what
> data types are used for the matrix itself, which is dominated by
> mathematics equation.  But for AS, the scale value could be a negative
> one. see tests in matrix_accuracy_test1.sc
> 
>         mc1._xscale = -1;   // triggers matrix::set_x_scale(float
> xscale) directly
>         xcheck_equals(mc1._xscale, -1); // triggers get_x_scale()
directly.
> 
> See?  the solution need a appropriate AS engine at high level, instead
> of inside the matrix itself.
> 

Yes, I think I see what you mean.

> The overall performance up should be reached through a step by step
> way, it's hard to demonstrate how big performance achievement or
> regression is made if only a small part changes in Gnash. I really
> don't know which single part makes Gnash slow, especially for the
> non-as core:) I rely on inaccurate theoretical analysis. Drop float
> matrix, float cxform, float edges, float paths, float rect, float
> invalidated bound detecting...  all seems good and correct direction
> to me.
> 

As I said, I'm sure this is good and necessary, and using the same types
as the PP does is generally a very good idea.

> It's undefined according to your docs.  But for matrix only cases, we
> don't need the 'unsigned' cast now.
> 

In this case my docs are "The C++ International Standard", so there's
not much arguing with them ;). Can the unsigned cast be dropped then, if
the functions are moved to be in the matrix class?


> For fun, any knows for which compiler and CPU, the result of the
> following code is not  4294967295(0xffffffff)???

I'll see if I can find one! If not, I'll submit a patch to gcc with the
explanation that it's valid C++.

-bwy

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

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