Save one instruction in 'vswap()', no issue

This commit is contained in:
heckflosse 2018-02-12 00:20:31 +01:00
parent 019fb12b22
commit aae65229ca

View File

@ -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;
}