[cairo] Speedup _cairo_matrix_to_pixman_matrix

Behdad Esfahbod behdad at behdad.org
Tue Nov 21 14:09:25 PST 2006


On Tue, 2006-11-21 at 15:16 -0500, Daniel Amelang wrote:
> +        memcpy (pixman_transform->matrix,
> +                &pixman_identity_matrix,
> +                sizeof (pixman_identity_matrix)); 

Shouldn't this simply be:

  *pixman_transform->matrix = pixman_identity_matrix;

Here and in similar patches.  In both cases the compiler decides whether
to call memcpy or do it inline.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list