Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common Modified Files: evas_blend_pixel_pixel.c evas_draw_main.c Log Message: actually use the sse routines! =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_blend_pixel_pixel.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- evas_blend_pixel_pixel.c 11 Dec 2005 04:55:20 -0000 1.22 +++ evas_blend_pixel_pixel.c 22 Jan 2006 06:54:18 -0000 1.23 @@ -276,7 +276,25 @@ void evas_common_copy_pixels_rgba_to_rgba_sse(DATA32 *src, DATA32 *dst, int len) { - DATA32 *src_ptr, *dst_ptr, *dst_end_ptr, *dst_end_ptr_pre; + DATA32 *src_ptr, *dst_ptr, *dst_end_ptr; + + dst_end_ptr = dst + len; + dst_end_ptr -= 15; + src_ptr = src; + dst_ptr = dst; + while (dst_ptr < dst_end_ptr) + { + MOVE_16DWORDS_MMX2(src_ptr, dst_ptr); + src_ptr+=16; + dst_ptr+=16; + } + while (dst_ptr < dst_end_ptr) + { + *dst_ptr = *src_ptr; + src_ptr++; + dst_ptr++; + } +#if 0 #ifdef ALIGN_FIX int src_align; int dst_align; @@ -321,6 +339,7 @@ src_ptr++; dst_ptr++; } +#endif } #endif =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/common/evas_draw_main.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- evas_draw_main.c 11 Dec 2005 04:55:20 -0000 1.14 +++ evas_draw_main.c 22 Jan 2006 06:54:18 -0000 1.15 @@ -612,22 +612,22 @@ } else { -#if 1 +#if 0 # ifdef BUILD_MMX -# ifdef BUILD_C +# ifdef BUILD_C if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2)) -# endif +# endif return evas_common_copy_pixels_rgba_to_rgba_mmx2; -# ifdef BUILD_SSE +# ifdef BUILD_SSE else +# endif # endif -#endif -#ifdef BUILD_SSE -# ifdef BUILD_C - if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 64 * 64)) -# endif - return evas_common_copy_pixels_rgba_to_rgba_sse; +# ifdef BUILD_SSE +# ifdef BUILD_C + if (evas_common_cpu_has_feature(CPU_FEATURE_SSE)) +# endif + return evas_common_copy_pixels_rgba_to_rgba_sse; # ifdef BUILD_MMX else # endif @@ -648,28 +648,28 @@ #else # ifdef BUILD_SSE - if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 256 * 256)) + if (evas_common_cpu_has_feature(CPU_FEATURE_SSE)) return evas_common_copy_pixels_rgba_to_rgba_sse; -# ifdef BUILD_MMX +# ifdef BUILD_MMX else +# endif # endif -#endif -#ifdef BUILD_MMX -# ifdef BUILD_C +# ifdef BUILD_MMX +# ifdef BUILD_C if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2)) -# endif +# endif return evas_common_copy_pixels_rgba_to_rgba_mmx2; -# ifdef BUILD_C +# ifdef BUILD_C else if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) -# endif +# endif return evas_common_copy_pixels_rgba_to_rgba_mmx; -# ifdef BUILD_C +# ifdef BUILD_C else +# endif # endif -#endif -#ifdef BUILD_C +# ifdef BUILD_C return evas_common_copy_pixels_rgba_to_rgba_c; -#endif +# endif #endif } ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs