forked from enlightenment/efl
evas draw func get - make pixels as unused as it is in neon asm cases
also a little shitespace cleanup and correct ()ing of ops to clean this function up a bit.
This commit is contained in:
parent
f00dbd2252
commit
5424345c46
|
@ -584,16 +584,16 @@ evas_common_copy_pixels_rev_sse(DATA32 *src, DATA32 *dst, int len)
|
|||
#endif
|
||||
|
||||
Gfx_Func_Copy
|
||||
evas_common_draw_func_copy_get(int pixels, int reverse)
|
||||
evas_common_draw_func_copy_get(int pixels EINA_UNUSED, int reverse)
|
||||
{
|
||||
if (reverse == -1)
|
||||
return evas_common_copy_rev_pixels_c;
|
||||
return evas_common_copy_rev_pixels_c;
|
||||
if (reverse)
|
||||
{
|
||||
#ifdef BUILD_MMX
|
||||
if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 64 * 64))
|
||||
return evas_common_copy_pixels_rev_sse;
|
||||
else if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
|
||||
if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > (64 * 64)))
|
||||
return evas_common_copy_pixels_rev_sse;
|
||||
else if (evas_common_cpu_has_feature(CPU_FEATURE_MMX))
|
||||
return evas_common_copy_pixels_rev_mmx;
|
||||
#endif
|
||||
#ifdef BUILD_NEON
|
||||
|
@ -605,7 +605,7 @@ evas_common_draw_func_copy_get(int pixels, int reverse)
|
|||
else
|
||||
{
|
||||
#ifdef BUILD_MMX
|
||||
if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > 64 * 64))
|
||||
if (evas_common_cpu_has_feature(CPU_FEATURE_SSE) && (pixels > (64 * 64)))
|
||||
return evas_common_copy_pixels_sse;
|
||||
else if (evas_common_cpu_has_feature(CPU_FEATURE_MMX2))
|
||||
return evas_common_copy_pixels_mmx2;
|
||||
|
|
Loading…
Reference in New Issue