From aae65229caa91f6bae1728c1afc6c613da966621 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Mon, 12 Feb 2018 00:20:31 +0100 Subject: [PATCH] Save one instruction in 'vswap()', no issue --- rtengine/sleefsseavx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rtengine/sleefsseavx.c b/rtengine/sleefsseavx.c index 706d5585d..574499571 100644 --- a/rtengine/sleefsseavx.c +++ b/rtengine/sleefsseavx.c @@ -1377,8 +1377,7 @@ static INLINE vfloat SQRV(vfloat a){ static inline void vswap( vmask condition, vfloat &a, vfloat &b) { // conditional swap the elements of two vfloats vfloat temp = vself(condition, a, b); // the values which fit to condition - condition = vnotm(condition); // invert the condition - a = vself(condition, a, b); // the values which fit to inverted condition + a = vself(condition, b, a); // the values which fit to inverted condition b = temp; }