rename supervector class header, use dup_*() functions names instead of set1_*(), minor fixes

This commit is contained in:
Konstantinos Margaritis
2021-07-02 19:11:44 +03:00
parent 9685095379
commit 2753dbb3b0
10 changed files with 131 additions and 145 deletions

View File

@@ -32,9 +32,7 @@
#include<time.h>
#include"gtest/gtest.h"
#include"ue2common.h"
#include"util/arch.h"
#include"util/simd_utils.h"
#include"util/simd/types.hpp"
#include"util/supervector/supervector.hpp"
TEST(SuperVectorUtilsTest, Zero128c) {
@@ -303,14 +301,11 @@ TEST(SuperVectorUtilsTest,pshufbc) {
}
/*Define ALIGNR128 macro*/
#define TEST_ALIGNR128(v1, v2, buf, l) { \
auto v_aligned = v2.alignr(v1,l); \
printv_u8("v1", v1); \
printv_u8("v2", v2); \
printv_u8("v_aligned", v_aligned); \
for (size_t i=0; i<16; i++) { \
ASSERT_EQ(v_aligned.u.u8[i], vec[16 -l + i]); \
} \
#define TEST_ALIGNR128(v1, v2, buf, l) { \
auto v_aligned = v2.alignr(v1, l); \
for (size_t i=0; i<16; i++) { \
ASSERT_EQ(v_aligned.u.u8[i], vec[16 - l + i]); \
} \
}
TEST(SuperVectorUtilsTest,Alignr128c){