mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 11:16:29 +03:00
rename supervector class header, use dup_*() functions names instead of set1_*(), minor fixes
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user