summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_op_blend
diff options
context:
space:
mode:
authorAlbin Tonnerre <albin.tonnerre@gmail.com>2014-02-09 09:42:52 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-09 09:42:52 +0900
commit259f33679c38e03de3e35c3a0859b3f3f0f9c39a (patch)
treef3e3eb6c6b9bdd89b2cc998de94e92375dc3b6b9 /src/lib/evas/common/evas_op_blend
parent6e1b9de11285c07b939f388f76b56deaf332dd76 (diff)
evas/op_blend: rename LOOP_ALIGNED_U1_A48_SSE3 to LOOP_ALIGNED_U1_A48
Summary: There's nothing SSE3-specific about that macro, let's use a more generic name for it. Since that's just a generic macro, we can also allow non-SSE (eg. NEON) code to use it if they want to Reviewers: cedric CC: cedric Differential Revision: https://phab.enlightenment.org/D528
Diffstat (limited to 'src/lib/evas/common/evas_op_blend')
-rw-r--r--src/lib/evas/common/evas_op_blend/op_blend_color_sse3.c4
-rw-r--r--src/lib/evas/common/evas_op_blend/op_blend_mask_color_sse3.c6
-rw-r--r--src/lib/evas/common/evas_op_blend/op_blend_pixel_color_sse3.c14
-rw-r--r--src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_sse3.c6
-rw-r--r--src/lib/evas/common/evas_op_blend/op_blend_pixel_sse3.c8
5 files changed, 19 insertions, 19 deletions
diff --git a/src/lib/evas/common/evas_op_blend/op_blend_color_sse3.c b/src/lib/evas/common/evas_op_blend/op_blend_color_sse3.c
index 02321b5bd8..e986f10b62 100644
--- a/src/lib/evas/common/evas_op_blend/op_blend_color_sse3.c
+++ b/src/lib/evas/common/evas_op_blend/op_blend_color_sse3.c
@@ -10,7 +10,7 @@ _op_blend_c_dp_sse3(DATA32 *s EINA_UNUSED, DATA8 *m EINA_UNUSED, DATA32 c, DATA3
10 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 10 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
11 const __m128i a_packed = _mm_set_epi32(a, a, a, a); 11 const __m128i a_packed = _mm_set_epi32(a, a, a, a);
12 12
13 LOOP_ALIGNED_U1_A48_SSE3(d, l, 13 LOOP_ALIGNED_U1_A48(d, l,
14 { /* UOP */ 14 { /* UOP */
15 15
16 *d = c + MUL_256(a, *d); 16 *d = c + MUL_256(a, *d);
@@ -94,7 +94,7 @@ _op_blend_rel_c_dp_sse3(DATA32 *s EINA_UNUSED, DATA8 *m EINA_UNUSED, DATA32 c, D
94 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 94 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
95 const __m128i alpha_packed = _mm_set_epi32(alpha, alpha, alpha, alpha); 95 const __m128i alpha_packed = _mm_set_epi32(alpha, alpha, alpha, alpha);
96 96
97 LOOP_ALIGNED_U1_A48_SSE3(d, l, 97 LOOP_ALIGNED_U1_A48(d, l,
98 { /* UOP */ 98 { /* UOP */
99 99
100 *d = MUL_SYM(*d >> 24, c) + MUL_256(alpha, *d); 100 *d = MUL_SYM(*d >> 24, c) + MUL_256(alpha, *d);
diff --git a/src/lib/evas/common/evas_op_blend/op_blend_mask_color_sse3.c b/src/lib/evas/common/evas_op_blend/op_blend_mask_color_sse3.c
index 429e8d5ce0..576220db2d 100644
--- a/src/lib/evas/common/evas_op_blend/op_blend_mask_color_sse3.c
+++ b/src/lib/evas/common/evas_op_blend/op_blend_mask_color_sse3.c
@@ -7,7 +7,7 @@ _op_blend_mas_c_dp_sse3(DATA32 *s EINA_UNUSED, DATA8 *m, DATA32 c, DATA32 *d, in
7 7
8 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 8 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
9 9
10 LOOP_ALIGNED_U1_A48_SSE3(d, l, 10 LOOP_ALIGNED_U1_A48(d, l,
11 { /* UOP */ 11 { /* UOP */
12 12
13 DATA32 a = *m; 13 DATA32 a = *m;
@@ -76,7 +76,7 @@ _op_blend_mas_can_dp_sse3(DATA32 *s EINA_UNUSED, DATA8 *m, DATA32 c, DATA32 *d,
76 const __m128i one = _mm_set_epi32(1, 1, 1, 1); 76 const __m128i one = _mm_set_epi32(1, 1, 1, 1);
77 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 77 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
78 78
79 LOOP_ALIGNED_U1_A48_SSE3(d, l, 79 LOOP_ALIGNED_U1_A48(d, l,
80 { /* UOP */ 80 { /* UOP */
81 81
82 alpha = *m; 82 alpha = *m;
@@ -215,7 +215,7 @@ _op_blend_rel_mas_c_dp_sse3(DATA32 *s EINA_UNUSED, DATA8 *m, DATA32 c, DATA32 *d
215 215
216 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 216 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
217 217
218 LOOP_ALIGNED_U1_A48_SSE3(d, l, 218 LOOP_ALIGNED_U1_A48(d, l,
219 { /* UOP */ 219 { /* UOP */
220 220
221 DATA32 mc = MUL_SYM(*m, c); 221 DATA32 mc = MUL_SYM(*m, c);
diff --git a/src/lib/evas/common/evas_op_blend/op_blend_pixel_color_sse3.c b/src/lib/evas/common/evas_op_blend/op_blend_pixel_color_sse3.c
index b0c2b84f8e..c97fd2e6b6 100644
--- a/src/lib/evas/common/evas_op_blend/op_blend_pixel_color_sse3.c
+++ b/src/lib/evas/common/evas_op_blend/op_blend_pixel_color_sse3.c
@@ -9,7 +9,7 @@ _op_blend_p_c_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d, int
9 9
10 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 10 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
11 11
12 LOOP_ALIGNED_U1_A48_SSE3(d, l, 12 LOOP_ALIGNED_U1_A48(d, l,
13 { /* UOP */ 13 { /* UOP */
14 14
15 DATA32 sc = MUL4_SYM(c, *s); 15 DATA32 sc = MUL4_SYM(c, *s);
@@ -69,7 +69,7 @@ _op_blend_pan_c_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d, in
69 const __m128i c_alpha = _mm_set_epi32(c_a, c_a, c_a, c_a); 69 const __m128i c_alpha = _mm_set_epi32(c_a, c_a, c_a, c_a);
70 const __m128i a0 = _mm_set_epi32(alpha, alpha, alpha, alpha); 70 const __m128i a0 = _mm_set_epi32(alpha, alpha, alpha, alpha);
71 71
72 LOOP_ALIGNED_U1_A48_SSE3(d, l, 72 LOOP_ALIGNED_U1_A48(d, l,
73 { /* UOP */ 73 { /* UOP */
74 74
75 *d = ((c & 0xff000000) + MUL3_SYM(c, *s)) + MUL_256(alpha, *d); 75 *d = ((c & 0xff000000) + MUL3_SYM(c, *s)) + MUL_256(alpha, *d);
@@ -119,7 +119,7 @@ _op_blend_p_can_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d, in
119 int alpha; 119 int alpha;
120 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 120 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
121 121
122 LOOP_ALIGNED_U1_A48_SSE3(d, l, 122 LOOP_ALIGNED_U1_A48(d, l,
123 { /* UOP */ 123 { /* UOP */
124 124
125 alpha = 256 - (*s >> 24); 125 alpha = 256 - (*s >> 24);
@@ -173,7 +173,7 @@ _op_blend_pan_can_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d,
173 173
174 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 174 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
175 175
176 LOOP_ALIGNED_U1_A48_SSE3(d, l, 176 LOOP_ALIGNED_U1_A48(d, l,
177 { /* UOP */ 177 { /* UOP */
178 178
179 *d++ = 0xff000000 + MUL3_SYM(c, *s); 179 *d++ = 0xff000000 + MUL3_SYM(c, *s);
@@ -215,7 +215,7 @@ _op_blend_p_caa_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d, in
215 c = 1 + (c & 0xff); 215 c = 1 + (c & 0xff);
216 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 216 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
217 217
218 LOOP_ALIGNED_U1_A48_SSE3(d, l, 218 LOOP_ALIGNED_U1_A48(d, l,
219 { /* UOP */ 219 { /* UOP */
220 220
221 DATA32 sc = MUL_256(c, *s); 221 DATA32 sc = MUL_256(c, *s);
@@ -268,7 +268,7 @@ _op_blend_pan_caa_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d,
268 c = 1 + (c & 0xff); 268 c = 1 + (c & 0xff);
269 const __m128i c_packed = _mm_set_epi32(c, c, c,c); 269 const __m128i c_packed = _mm_set_epi32(c, c, c,c);
270 270
271 LOOP_ALIGNED_U1_A48_SSE3(d, l, 271 LOOP_ALIGNED_U1_A48(d, l,
272 { /* UOP */ 272 { /* UOP */
273 273
274 *d = INTERP_256(c, *s, *d); 274 *d = INTERP_256(c, *s, *d);
@@ -397,7 +397,7 @@ _op_blend_rel_p_c_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d,
397 397
398 const __m128i c_packed = _mm_set_epi32(c, c, c, c); 398 const __m128i c_packed = _mm_set_epi32(c, c, c, c);
399 399
400 LOOP_ALIGNED_U1_A48_SSE3(d, l, 400 LOOP_ALIGNED_U1_A48(d, l,
401 { /* UOP */ 401 { /* UOP */
402 402
403 DATA32 sc = MUL4_SYM(c, *s); 403 DATA32 sc = MUL4_SYM(c, *s);
diff --git a/src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_sse3.c b/src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_sse3.c
index e33831f19a..07f336b802 100644
--- a/src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_sse3.c
+++ b/src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_sse3.c
@@ -7,7 +7,7 @@ _op_blend_p_mas_dp_sse3(DATA32 *s, DATA8 *m, DATA32 c, DATA32 *d, int l) {
7 7
8 int alpha; 8 int alpha;
9 9
10 LOOP_ALIGNED_U1_A48_SSE3(d, l, 10 LOOP_ALIGNED_U1_A48(d, l,
11 { /* UOP */ 11 { /* UOP */
12 12
13 alpha = *m; 13 alpha = *m;
@@ -67,7 +67,7 @@ _op_blend_pas_mas_dp_sse3(DATA32 *s, DATA8 *m, DATA32 c EINA_UNUSED, DATA32 *d,
67 const __m128i ones = _mm_set_epi32(1, 1, 1, 1); 67 const __m128i ones = _mm_set_epi32(1, 1, 1, 1);
68 int alpha; 68 int alpha;
69 69
70 LOOP_ALIGNED_U1_A48_SSE3(d, l, 70 LOOP_ALIGNED_U1_A48(d, l,
71 { /* UOP */ 71 { /* UOP */
72 72
73 alpha = *m; 73 alpha = *m;
@@ -199,7 +199,7 @@ _op_blend_rel_p_mas_dp_sse3(DATA32 *s, DATA8 *m, DATA32 c, DATA32 *d, int l) {
199 199
200 int alpha; 200 int alpha;
201 201
202 LOOP_ALIGNED_U1_A48_SSE3(d, l, 202 LOOP_ALIGNED_U1_A48(d, l,
203 { /* UOP */ 203 { /* UOP */
204 204
205 c = MUL_SYM(*m, *s); 205 c = MUL_SYM(*m, *s);
diff --git a/src/lib/evas/common/evas_op_blend/op_blend_pixel_sse3.c b/src/lib/evas/common/evas_op_blend/op_blend_pixel_sse3.c
index 2601853ce4..76ef880d44 100644
--- a/src/lib/evas/common/evas_op_blend/op_blend_pixel_sse3.c
+++ b/src/lib/evas/common/evas_op_blend/op_blend_pixel_sse3.c
@@ -5,7 +5,7 @@
5static void 5static void
6_op_blend_p_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c EINA_UNUSED, DATA32 *d, int l) { 6_op_blend_p_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c EINA_UNUSED, DATA32 *d, int l) {
7 7
8 LOOP_ALIGNED_U1_A48_SSE3(d, l, 8 LOOP_ALIGNED_U1_A48(d, l,
9 { /* UOP */ 9 { /* UOP */
10 10
11 int alpha = 256 - (*s >> 24); 11 int alpha = 256 - (*s >> 24);
@@ -56,7 +56,7 @@ _op_blend_pas_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c EINA_UNUSED, DAT
56 56
57 const __m128i zero = _mm_setzero_si128(); 57 const __m128i zero = _mm_setzero_si128();
58 58
59 LOOP_ALIGNED_U1_A48_SSE3(d, l, 59 LOOP_ALIGNED_U1_A48(d, l,
60 { /* UOP */ 60 { /* UOP */
61 switch (*s & 0xff000000) 61 switch (*s & 0xff000000)
62 { 62 {
@@ -182,7 +182,7 @@ _op_blend_rel_p_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d, in
182 182
183 const __m128i ones = _mm_set_epi32(1, 1, 1, 1); 183 const __m128i ones = _mm_set_epi32(1, 1, 1, 1);
184 184
185 LOOP_ALIGNED_U1_A48_SSE3(d, l, 185 LOOP_ALIGNED_U1_A48(d, l,
186 { /* UOP */ 186 { /* UOP */
187 187
188 int alpha = 256 - (*s >> 24); 188 int alpha = 256 - (*s >> 24);
@@ -233,7 +233,7 @@ _op_blend_rel_pan_dp_sse3(DATA32 *s, DATA8 *m EINA_UNUSED, DATA32 c, DATA32 *d,
233 233
234 const __m128i ones = _mm_set_epi32(1, 1, 1, 1); 234 const __m128i ones = _mm_set_epi32(1, 1, 1, 1);
235 235
236 LOOP_ALIGNED_U1_A48_SSE3(d, l, 236 LOOP_ALIGNED_U1_A48(d, l,
237 { /* UOP */ 237 { /* UOP */
238 238
239 c = 1 + (*d >> 24); 239 c = 1 + (*d >> 24);