From 3154d391b3140056074247d42af8911728a37a7b Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 5 Oct 2011 23:41:01 +0000 Subject: [PATCH] [PATCH] evas: fix typo in LOOP_ALIGNED_U1_A48_SSE3 The old version works because in every function in which this macro is used ``l'' is the length and ``d'' is the destination. This patch prevents future headaches when those constraints no longer hold. Patch by: Jim Kukunas git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@63856 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/include/evas_blend_ops.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/include/evas_blend_ops.h b/src/lib/include/evas_blend_ops.h index 1429596..8f78256 100644 --- a/src/lib/include/evas_blend_ops.h +++ b/src/lib/include/evas_blend_ops.h @@ -348,12 +348,12 @@ mul3_sym_sse3(__m128i x, __m128i y) { return _mm_and_si128(res, RGB_MASK_SSE3); } -#define LOOP_ALIGNED_U1_A48_SSE3(D, LENGTH, UOP,A4OP, A8OP) \ +#define LOOP_ALIGNED_U1_A48_SSE3(DEST, LENGTH, UOP, A4OP, A8OP) \ { \ - while((uintptr_t)d & 0xF && l) UOP \ + while((uintptr_t)DEST & 0xF && LENGTH) UOP \ \ - while(l) { \ - switch(l) { \ + while(LENGTH) { \ + switch(LENGTH) { \ case 3: UOP \ case 2: UOP \ case 1: UOP \ -- 2.7.4