Use shifts for VectorGetLow

pull/703/head
Jeffrey Walton 2018-08-10 01:25:59 -04:00
parent eddc357981
commit 8c21b6af05
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ inline T VectorGetLow(const T& val)
//const T zero = {0};
//const uint8x16_p mask = {16,16,16,16, 16,16,16,16, 8,9,10,11, 12,13,14,15 };
//return (T)vec_perm(val, zero, mask);
return VectorShiftLeft<8>(VectorShiftRight<8>(val));
return VectorShiftRight<8>(VectorShiftLeft<8>(val));
}
/// \brief Extract a dword from a vector