summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_draw_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-05-22 02:49:50 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-05-22 02:49:50 +0000
commit46e02cf8bb14545bf73586145d52603b8fafd435 (patch)
tree01e271f53f8c8365bcad7195b3a55fa7ab54dbf5 /legacy/evas/src/lib/engines/common/evas_draw_main.c
parent2a6937cccbf90e16710dc46562249fb3d9405f39 (diff)
whitespace
SVN revision: 14889
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_draw_main.c176
1 files changed, 88 insertions, 88 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_draw_main.c b/legacy/evas/src/lib/engines/common/evas_draw_main.c
index 2470e04027..067e5d59f6 100644
--- a/legacy/evas/src/lib/engines/common/evas_draw_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_draw_main.c
@@ -40,7 +40,7 @@ evas_common_draw_context_clip_clip(RGBA_Draw_Context *dc, int x, int y, int w, i
40{ 40{
41 if (dc->clip.use) 41 if (dc->clip.use)
42 { 42 {
43 RECTS_CLIP_TO_RECT(dc->clip.x, dc->clip.y, dc->clip.w, dc->clip.h, 43 RECTS_CLIP_TO_RECT(dc->clip.x, dc->clip.y, dc->clip.w, dc->clip.h,
44 x, y, w, h); 44 x, y, w, h);
45 } 45 }
46 else 46 else
@@ -93,7 +93,7 @@ void
93evas_common_draw_context_set_modifiers(RGBA_Draw_Context *dc, DATA8 *rmod, DATA8 *gmod, DATA8 *bmod, DATA8 *amod) 93evas_common_draw_context_set_modifiers(RGBA_Draw_Context *dc, DATA8 *rmod, DATA8 *gmod, DATA8 *bmod, DATA8 *amod)
94{ 94{
95 int i; 95 int i;
96 96
97 dc->mod.use = 1; 97 dc->mod.use = 1;
98 dc->mul.use = 0; 98 dc->mul.use = 0;
99 if (rmod) memcpy(dc->mod.r, rmod, sizeof(DATA8) * 256); 99 if (rmod) memcpy(dc->mod.r, rmod, sizeof(DATA8) * 256);
@@ -128,7 +128,7 @@ void
128evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h) 128evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)
129{ 129{
130 Cutout_Rect *r; 130 Cutout_Rect *r;
131 131
132 r = calloc(1, sizeof(Cutout_Rect)); 132 r = calloc(1, sizeof(Cutout_Rect));
133 r->x = x; 133 r->x = x;
134 r->y = y; 134 r->y = y;
@@ -149,7 +149,7 @@ evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc)
149{ 149{
150 Cutout_Rect *r, *rects; 150 Cutout_Rect *r, *rects;
151 Evas_Object_List *l; 151 Evas_Object_List *l;
152 152
153 if (!dc->clip.use) return NULL; 153 if (!dc->clip.use) return NULL;
154 if ((dc->clip.w <= 0) || (dc->clip.h <= 0)) return NULL; 154 if ((dc->clip.w <= 0) || (dc->clip.h <= 0)) return NULL;
155 r = calloc(1, sizeof(Cutout_Rect)); 155 r = calloc(1, sizeof(Cutout_Rect));
@@ -172,7 +172,7 @@ evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects)
172 while (rects) 172 while (rects)
173 { 173 {
174 Cutout_Rect *r; 174 Cutout_Rect *r;
175 175
176 r = rects; 176 r = rects;
177 rects = evas_object_list_remove(rects, rects); 177 rects = evas_object_list_remove(rects, rects);
178 free(r); 178 free(r);
@@ -185,7 +185,7 @@ evas_common_draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
185 /* multiple rect in, multiple out */ 185 /* multiple rect in, multiple out */
186 Cutout_Rect *out; 186 Cutout_Rect *out;
187 Evas_Object_List *l; 187 Evas_Object_List *l;
188 188
189 out = NULL; 189 out = NULL;
190 for (l = (Evas_Object_List *)in; l; l = l->next) 190 for (l = (Evas_Object_List *)in; l; l = l->next)
191 { 191 {
@@ -196,7 +196,7 @@ evas_common_draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
196 while (r) 196 while (r)
197 { 197 {
198 Cutout_Rect *r2; 198 Cutout_Rect *r2;
199 199
200 r2 = r; 200 r2 = r;
201 r = evas_object_list_remove(r, r); 201 r = evas_object_list_remove(r, r);
202 out = evas_object_list_append(out, r2); 202 out = evas_object_list_append(out, r2);
@@ -217,35 +217,35 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
217#define INX1 (in->x) 217#define INX1 (in->x)
218#define INX2 (in->x + in->w) 218#define INX2 (in->x + in->w)
219#define SPX1 (split->x) 219#define SPX1 (split->x)
220#define SPX2 (split->x + split->w) 220#define SPX2 (split->x + split->w)
221#define INY1 (in->y) 221#define INY1 (in->y)
222#define INY2 (in->y + in->h) 222#define INY2 (in->y + in->h)
223#define SPY1 (split->y) 223#define SPY1 (split->y)
224#define SPY2 (split->y + split->h) 224#define SPY2 (split->y + split->h)
225#define X1_IN (in->x < split->x) 225#define X1_IN (in->x < split->x)
226#define X2_IN ((in->x + in->w) > (split->x + split->w)) 226#define X2_IN ((in->x + in->w) > (split->x + split->w))
227#define Y1_IN (in->y < split->y) 227#define Y1_IN (in->y < split->y)
228#define Y2_IN ((in->y + in->h) > (split->y + split->h)) 228#define Y2_IN ((in->y + in->h) > (split->y + split->h))
229#define R_NEW(_r, _x, _y, _w, _h) {(_r) = calloc(1, sizeof(Cutout_Rect)); (_r)->x = (_x); (_r)->y = (_y); (_r)->w = (_w); (_r)->h = (_h);} 229#define R_NEW(_r, _x, _y, _w, _h) {(_r) = calloc(1, sizeof(Cutout_Rect)); (_r)->x = (_x); (_r)->y = (_y); (_r)->w = (_w); (_r)->h = (_h);}
230 out = NULL; 230 out = NULL;
231 if (!RECTS_INTERSECT(in->x, in->y, in->w, in->h, 231 if (!RECTS_INTERSECT(in->x, in->y, in->w, in->h,
232 split->x, split->y, split->w, split->h)) 232 split->x, split->y, split->w, split->h))
233 { 233 {
234 R_NEW(r, in->x, in->y, in->w, in->h); 234 R_NEW(r, in->x, in->y, in->w, in->h);
235 out = evas_object_list_append(out, r); 235 out = evas_object_list_append(out, r);
236 return out; 236 return out;
237 } 237 }
238 238
239 /* S = split (ie cut out rect) */ 239 /* S = split (ie cut out rect) */
240 /* +--+ = in (rect to be cut) */ 240 /* +--+ = in (rect to be cut) */
241 241
242 /* 242 /*
243 * +---+ 243 * +---+
244 * | | 244 * | |
245 * | S | 245 * | S |
246 * | | 246 * | |
247 * +---+ 247 * +---+
248 * 248 *
249 */ 249 */
250 if (X1_IN && X2_IN && Y1_IN && Y2_IN) 250 if (X1_IN && X2_IN && Y1_IN && Y2_IN)
251 { 251 {
@@ -321,7 +321,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
321 * | | 321 * | |
322 * | | 322 * | |
323 * +---+ 323 * +---+
324 * 324 *
325 */ 325 */
326 if (!X1_IN && !X2_IN && !Y1_IN && Y2_IN) 326 if (!X1_IN && !X2_IN && !Y1_IN && Y2_IN)
327 { 327 {
@@ -329,13 +329,13 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
329 out = evas_object_list_append(out, r); 329 out = evas_object_list_append(out, r);
330 return out; 330 return out;
331 } 331 }
332 /* 332 /*
333 * +---+ 333 * +---+
334 * | | 334 * | |
335 * S|SSS|S 335 * S|SSS|S
336 * | | 336 * | |
337 * +---+ 337 * +---+
338 * 338 *
339 */ 339 */
340 if (!X1_IN && !X2_IN && Y1_IN && Y2_IN) 340 if (!X1_IN && !X2_IN && Y1_IN && Y2_IN)
341 { 341 {
@@ -345,7 +345,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
345 out = evas_object_list_append(out, r); 345 out = evas_object_list_append(out, r);
346 return out; 346 return out;
347 } 347 }
348 /* 348 /*
349 * +---+ 349 * +---+
350 * | | 350 * | |
351 * | | 351 * | |
@@ -365,7 +365,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
365 * | | 365 * | |
366 * | | 366 * | |
367 * +---+ 367 * +---+
368 * 368 *
369 */ 369 */
370 if (!X1_IN && X2_IN && !Y1_IN && Y2_IN) 370 if (!X1_IN && X2_IN && !Y1_IN && Y2_IN)
371 { 371 {
@@ -381,7 +381,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
381 * | | 381 * | |
382 * | | 382 * | |
383 * +---+ 383 * +---+
384 * 384 *
385 */ 385 */
386 if (X1_IN && X2_IN && !Y1_IN && Y2_IN) 386 if (X1_IN && X2_IN && !Y1_IN && Y2_IN)
387 { 387 {
@@ -399,7 +399,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
399 * | | 399 * | |
400 * | | 400 * | |
401 * +---+ 401 * +---+
402 * 402 *
403 */ 403 */
404 if (X1_IN && !X2_IN && !Y1_IN && Y2_IN) 404 if (X1_IN && !X2_IN && !Y1_IN && Y2_IN)
405 { 405 {
@@ -409,13 +409,13 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
409 out = evas_object_list_append(out, r); 409 out = evas_object_list_append(out, r);
410 return out; 410 return out;
411 } 411 }
412 /* 412 /*
413 * +---+ 413 * +---+
414 * | | 414 * | |
415 * S|S | 415 * S|S |
416 * | | 416 * | |
417 * +---+ 417 * +---+
418 * 418 *
419 */ 419 */
420 if (!X1_IN && X2_IN && Y1_IN && Y2_IN) 420 if (!X1_IN && X2_IN && Y1_IN && Y2_IN)
421 { 421 {
@@ -427,13 +427,13 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
427 out = evas_object_list_append(out, r); 427 out = evas_object_list_append(out, r);
428 return out; 428 return out;
429 } 429 }
430 /* 430 /*
431 * +---+ 431 * +---+
432 * | | 432 * | |
433 * | S|S 433 * | S|S
434 * | | 434 * | |
435 * +---+ 435 * +---+
436 * 436 *
437 */ 437 */
438 if (X1_IN && !X2_IN && Y1_IN && Y2_IN) 438 if (X1_IN && !X2_IN && Y1_IN && Y2_IN)
439 { 439 {
@@ -445,7 +445,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
445 out = evas_object_list_append(out, r); 445 out = evas_object_list_append(out, r);
446 return out; 446 return out;
447 } 447 }
448 /* 448 /*
449 * +---+ 449 * +---+
450 * | | 450 * | |
451 * | | 451 * | |
@@ -461,7 +461,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
461 out = evas_object_list_append(out, r); 461 out = evas_object_list_append(out, r);
462 return out; 462 return out;
463 } 463 }
464 /* 464 /*
465 * +---+ 465 * +---+
466 * | | 466 * | |
467 * | | 467 * | |
@@ -479,7 +479,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
479 out = evas_object_list_append(out, r); 479 out = evas_object_list_append(out, r);
480 return out; 480 return out;
481 } 481 }
482 /* 482 /*
483 * +---+ 483 * +---+
484 * | | 484 * | |
485 * | | 485 * | |
@@ -531,7 +531,7 @@ evas_common_draw_context_cutout_merge(Cutout_Rect *in, Cutout_Rect *merge)
531 while (r) 531 while (r)
532 { 532 {
533 Cutout_Rect *r2; 533 Cutout_Rect *r2;
534 534
535 r2 = r; 535 r2 = r;
536 r = evas_object_list_remove(r, r); 536 r = evas_object_list_remove(r, r);
537 out = evas_object_list_append(out, r2); 537 out = evas_object_list_append(out, r2);
@@ -554,15 +554,15 @@ evas_common_draw_func_blend_get(RGBA_Image *src, RGBA_Image *dst, int pixels)
554#ifdef BUILD_MMX 554#ifdef BUILD_MMX
555# ifdef BUILD_C 555# ifdef BUILD_C
556 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 556 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
557# endif 557# endif
558 return evas_common_blend_pixels_rgba_to_rgb_mmx; 558 return evas_common_blend_pixels_rgba_to_rgb_mmx;
559# ifdef BUILD_C 559# ifdef BUILD_C
560 else 560 else
561# endif 561# endif
562#endif 562#endif
563#ifdef BUILD_C 563#ifdef BUILD_C
564 return evas_common_blend_pixels_rgba_to_rgb_c; 564 return evas_common_blend_pixels_rgba_to_rgb_c;
565#endif 565#endif
566 } 566 }
567 } 567 }
568 else 568 else
@@ -578,7 +578,7 @@ evas_common_draw_func_blend_get(RGBA_Image *src, RGBA_Image *dst, int pixels)
578# ifdef BUILD_MMX 578# ifdef BUILD_MMX
579# ifdef BUILD_C 579# ifdef BUILD_C
580 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2)) 580 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2))
581# endif 581# endif
582 return evas_common_copy_pixels_rgba_to_rgba_mmx2; 582 return evas_common_copy_pixels_rgba_to_rgba_mmx2;
583# ifdef BUILD_SSE 583# ifdef BUILD_SSE
584 else 584 else
@@ -596,43 +596,43 @@ evas_common_draw_func_blend_get(RGBA_Image *src, RGBA_Image *dst, int pixels)
596#ifdef BUILD_MMX 596#ifdef BUILD_MMX
597# ifdef BUILD_C 597# ifdef BUILD_C
598 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 598 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
599# endif 599# endif
600 return evas_common_copy_pixels_rgba_to_rgba_mmx; 600 return evas_common_copy_pixels_rgba_to_rgba_mmx;
601# ifdef BUILD_C 601# ifdef BUILD_C
602 else 602 else
603# endif 603# endif
604#endif 604#endif
605#ifdef BUILD_C 605#ifdef BUILD_C
606 return evas_common_copy_pixels_rgba_to_rgba_c; 606 return evas_common_copy_pixels_rgba_to_rgba_c;
607#endif 607#endif
608 608
609#else 609#else
610 610
611# ifdef BUILD_SSE 611# ifdef BUILD_SSE
612 if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 256 * 256)) 612 if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 256 * 256))
613 return evas_common_copy_pixels_rgba_to_rgba_sse; 613 return evas_common_copy_pixels_rgba_to_rgba_sse;
614# ifdef BUILD_MMX 614# ifdef BUILD_MMX
615 else 615 else
616# endif 616# endif
617#endif 617#endif
618#ifdef BUILD_MMX 618#ifdef BUILD_MMX
619# ifdef BUILD_C 619# ifdef BUILD_C
620 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2)) 620 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2))
621# endif 621# endif
622 return evas_common_copy_pixels_rgba_to_rgba_mmx2; 622 return evas_common_copy_pixels_rgba_to_rgba_mmx2;
623# ifdef BUILD_C 623# ifdef BUILD_C
624 else if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 624 else if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
625# endif 625# endif
626 return evas_common_copy_pixels_rgba_to_rgba_mmx; 626 return evas_common_copy_pixels_rgba_to_rgba_mmx;
627# ifdef BUILD_C 627# ifdef BUILD_C
628 else 628 else
629# endif 629# endif
630#endif 630#endif
631#ifdef BUILD_C 631#ifdef BUILD_C
632 return evas_common_copy_pixels_rgba_to_rgba_c; 632 return evas_common_copy_pixels_rgba_to_rgba_c;
633#endif 633#endif
634 634
635#endif 635#endif
636 } 636 }
637 } 637 }
638 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut(); 638 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
@@ -655,13 +655,13 @@ evas_common_draw_func_blend_color_get(DATA32 src, RGBA_Image *dst, int pixels)
655#ifdef BUILD_MMX 655#ifdef BUILD_MMX
656 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 656 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
657 return evas_common_blend_color_rgba_to_rgb_mmx; 657 return evas_common_blend_color_rgba_to_rgb_mmx;
658#endif 658#endif
659#ifdef BUILD_C 659#ifdef BUILD_C
660# ifdef BUILD_MMX 660# ifdef BUILD_MMX
661 else 661 else
662# endif 662# endif
663 return evas_common_blend_color_rgba_to_rgb_c; 663 return evas_common_blend_color_rgba_to_rgb_c;
664#endif 664#endif
665 } 665 }
666 } 666 }
667 else 667 else
@@ -673,23 +673,23 @@ evas_common_draw_func_blend_color_get(DATA32 src, RGBA_Image *dst, int pixels)
673 } 673 }
674 else 674 else
675 { 675 {
676#ifdef BUILD_SSE 676#ifdef BUILD_SSE
677 if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 64 * 64)) 677 if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 64 * 64))
678 return evas_common_copy_color_rgba_to_rgba_sse; 678 return evas_common_copy_color_rgba_to_rgba_sse;
679#endif 679#endif
680#ifdef BUILD_MMX 680#ifdef BUILD_MMX
681# ifdef BUILD_SSE 681# ifdef BUILD_SSE
682 else 682 else
683# endif 683# endif
684 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 684 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
685 return evas_common_copy_color_rgba_to_rgba_mmx; 685 return evas_common_copy_color_rgba_to_rgba_mmx;
686#endif 686#endif
687#ifdef BUILD_C 687#ifdef BUILD_C
688# ifdef BUILD_MMX 688# ifdef BUILD_MMX
689 else 689 else
690# endif 690# endif
691 return evas_common_copy_color_rgba_to_rgba_c; 691 return evas_common_copy_color_rgba_to_rgba_c;
692#endif 692#endif
693 } 693 }
694 } 694 }
695 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut(); 695 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
@@ -741,16 +741,16 @@ evas_common_draw_func_blend_mul_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst
741 } 741 }
742 else 742 else
743 { 743 {
744#ifdef BUILD_MMX 744#ifdef BUILD_MMX
745 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 745 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
746 return evas_common_blend_pixels_mul_color_rgba_to_rgb_mmx; 746 return evas_common_blend_pixels_mul_color_rgba_to_rgb_mmx;
747#endif 747#endif
748#ifdef BUILD_C 748#ifdef BUILD_C
749# ifdef BUILD_MMX 749# ifdef BUILD_MMX
750 else 750 else
751# endif 751# endif
752 return evas_common_blend_pixels_mul_color_rgba_to_rgb_c; 752 return evas_common_blend_pixels_mul_color_rgba_to_rgb_c;
753#endif 753#endif
754 } 754 }
755 } 755 }
756 else 756 else
@@ -762,16 +762,16 @@ evas_common_draw_func_blend_mul_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst
762 } 762 }
763 else 763 else
764 { 764 {
765#ifdef BUILD_MMX 765#ifdef BUILD_MMX
766 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 766 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
767 return evas_common_blend_pixels_mul_color_rgba_to_rgb_mmx; 767 return evas_common_blend_pixels_mul_color_rgba_to_rgb_mmx;
768#endif 768#endif
769#ifdef BUILD_C 769#ifdef BUILD_C
770# ifdef BUILD_MMX 770# ifdef BUILD_MMX
771 else 771 else
772# endif 772# endif
773 return evas_common_blend_pixels_mul_color_rgba_to_rgb_c; 773 return evas_common_blend_pixels_mul_color_rgba_to_rgb_c;
774#endif 774#endif
775 } 775 }
776 } 776 }
777 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut(); 777 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
@@ -790,7 +790,7 @@ evas_common_draw_func_blend_alpha_get(RGBA_Image *dst)
790 } 790 }
791 else 791 else
792 { 792 {
793#ifdef BUILD_MMX 793#ifdef BUILD_MMX
794 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 794 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
795 return evas_common_blend_alpha_color_rgba_to_rgb_mmx; 795 return evas_common_blend_alpha_color_rgba_to_rgb_mmx;
796#endif 796#endif
@@ -805,7 +805,7 @@ evas_common_draw_func_blend_alpha_get(RGBA_Image *dst)
805 return evas_common_blend_alpha_color_rgba_to_rgba_c; 805 return evas_common_blend_alpha_color_rgba_to_rgba_c;
806#else 806#else
807 return NULL; 807 return NULL;
808#endif 808#endif
809} 809}
810 810
811Gfx_Func_Blend_Src_Dst 811Gfx_Func_Blend_Src_Dst
@@ -813,23 +813,23 @@ evas_common_draw_func_copy_get(int pixels, int reverse)
813{ 813{
814 if (reverse) 814 if (reverse)
815 { 815 {
816#ifdef BUILD_SSE 816#ifdef BUILD_SSE
817 if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 256 * 256)) 817 if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 256 * 256))
818 return evas_common_copy_pixels_rev_rgba_to_rgba_sse; 818 return evas_common_copy_pixels_rev_rgba_to_rgba_sse;
819#endif 819#endif
820#ifdef BUILD_MMX 820#ifdef BUILD_MMX
821# ifdef BUILD_SSE 821# ifdef BUILD_SSE
822 else 822 else
823# endif 823# endif
824 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 824 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
825 return evas_common_copy_pixels_rev_rgba_to_rgba_mmx; 825 return evas_common_copy_pixels_rev_rgba_to_rgba_mmx;
826#endif 826#endif
827#ifdef BUILD_C 827#ifdef BUILD_C
828# ifdef BUILD_MMX 828# ifdef BUILD_MMX
829 else 829 else
830# endif 830# endif
831 return evas_common_copy_pixels_rev_rgba_to_rgba_c; 831 return evas_common_copy_pixels_rev_rgba_to_rgba_c;
832#endif 832#endif
833 } 833 }
834 else 834 else
835 { 835 {
@@ -838,7 +838,7 @@ evas_common_draw_func_copy_get(int pixels, int reverse)
838# ifdef BUILD_MMX 838# ifdef BUILD_MMX
839# ifdef BUILD_C 839# ifdef BUILD_C
840 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2)) 840 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2))
841# endif 841# endif
842 return evas_common_copy_pixels_rgba_to_rgba_mmx2; 842 return evas_common_copy_pixels_rgba_to_rgba_mmx2;
843# ifdef BUILD_SSE 843# ifdef BUILD_SSE
844 else 844 else
@@ -856,43 +856,43 @@ evas_common_draw_func_copy_get(int pixels, int reverse)
856#ifdef BUILD_MMX 856#ifdef BUILD_MMX
857# ifdef BUILD_C 857# ifdef BUILD_C
858 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 858 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
859# endif 859# endif
860 return evas_common_copy_pixels_rgba_to_rgba_mmx; 860 return evas_common_copy_pixels_rgba_to_rgba_mmx;
861# ifdef BUILD_C 861# ifdef BUILD_C
862 else 862 else
863# endif 863# endif
864#endif 864#endif
865#ifdef BUILD_C 865#ifdef BUILD_C
866 return evas_common_copy_pixels_rgba_to_rgba_c; 866 return evas_common_copy_pixels_rgba_to_rgba_c;
867#endif 867#endif
868 868
869#else 869#else
870 870
871# ifdef BUILD_SSE 871# ifdef BUILD_SSE
872 if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 256 * 256)) 872 if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 256 * 256))
873 return evas_common_copy_pixels_rgba_to_rgba_sse; 873 return evas_common_copy_pixels_rgba_to_rgba_sse;
874# ifdef BUILD_MMX 874# ifdef BUILD_MMX
875 else 875 else
876# endif 876# endif
877#endif 877#endif
878#ifdef BUILD_MMX 878#ifdef BUILD_MMX
879# ifdef BUILD_C 879# ifdef BUILD_C
880 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2)) 880 if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2))
881# endif 881# endif
882 return evas_common_copy_pixels_rgba_to_rgba_mmx2; 882 return evas_common_copy_pixels_rgba_to_rgba_mmx2;
883# ifdef BUILD_C 883# ifdef BUILD_C
884 else if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) 884 else if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
885# endif 885# endif
886 return evas_common_copy_pixels_rgba_to_rgba_mmx; 886 return evas_common_copy_pixels_rgba_to_rgba_mmx;
887# ifdef BUILD_C 887# ifdef BUILD_C
888 else 888 else
889# endif 889# endif
890#endif 890#endif
891#ifdef BUILD_C 891#ifdef BUILD_C
892 return evas_common_copy_pixels_rgba_to_rgba_c; 892 return evas_common_copy_pixels_rgba_to_rgba_c;
893#endif 893#endif
894 894
895#endif 895#endif
896 } 896 }
897 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut(); 897 if (!_evas_pow_lut) evas_common_blend_init_evas_pow_lut();
898#ifdef BUILD_C 898#ifdef BUILD_C