From 5424345c465bf07dd5153039a882c2faae928ec5 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 11 Feb 2017 13:22:40 +0900 Subject: [PATCH] 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. --- src/lib/evas/common/evas_blit_main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/evas/common/evas_blit_main.c b/src/lib/evas/common/evas_blit_main.c index 4da4034..d01fb21 100644 --- a/src/lib/evas/common/evas_blit_main.c +++ b/src/lib/evas/common/evas_blit_main.c @@ -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; -- 2.7.4