evas draw func get - make pixels as unused as it is in neon asm cases
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 11 Feb 2017 04:22:40 +0000 (13:22 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 11 Feb 2017 15:29:41 +0000 (00:29 +0900)
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

index 4da4034..d01fb21 100644 (file)
@@ -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;