diff options
author | Matt Turner <mattst88@gmail.com> | 2012-06-28 12:17:16 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-07-01 16:25:30 -0400 |
commit | 51f27d7364d66e47d882ee531b6655368159231a (patch) | |
tree | e64b2fddeba8e3c11cd7b33af1e89830de883ede | |
parent | b0855f095aba8e0c98d1fd1863b278fc72a4dd2c (diff) |
mmx: Use expand_alpha instead of mask/shift
-rw-r--r-- | pixman/pixman-mmx.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pixman/pixman-mmx.c b/pixman/pixman-mmx.c index d869c04c..0ebe1194 100644 --- a/pixman/pixman-mmx.c +++ b/pixman/pixman-mmx.c @@ -1599,9 +1599,7 @@ mmx_composite_over_8888_n_8888 (pixman_implementation_t *imp, PIXMAN_IMAGE_GET_LINE (src_image, src_x, src_y, uint32_t, src_stride, src_line, 1); mask = _pixman_image_get_solid (imp, mask_image, dest_image->bits.format); - mask &= 0xff000000; - mask = mask | mask >> 8 | mask >> 16 | mask >> 24; - vmask = load8888 (&mask); + vmask = expand_alpha (load8888 (&mask)); while (height--) { @@ -1670,9 +1668,7 @@ mmx_composite_over_x888_n_8888 (pixman_implementation_t *imp, PIXMAN_IMAGE_GET_LINE (src_image, src_x, src_y, uint32_t, src_stride, src_line, 1); mask = _pixman_image_get_solid (imp, mask_image, dest_image->bits.format); - mask &= 0xff000000; - mask = mask | mask >> 8 | mask >> 16 | mask >> 24; - vmask = load8888 (&mask); + vmask = expand_alpha (load8888 (&mask)); srca = MC (4x00ff); while (height--) |