]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
print functions keyword renamed
authorapostolos <apostolos.tapsas@vectorcamp.gr>
Fri, 22 Oct 2021 09:36:07 +0000 (12:36 +0300)
committerapostolos <apostolos.tapsas@vectorcamp.gr>
Fri, 22 Oct 2021 09:36:07 +0000 (12:36 +0300)
src/util/arch/common/simd_utils.h
unit/internal/shuffle.cpp

index 5bf846f94b4888138c1c7f059656753c46d3d9e1..40a569f709ef6c392538222fbf0a9957d1ab723d 100644 (file)
 #endif // HAVE_SIMD_128_BITS
 
 #ifdef DEBUG
-static inline void print_m128_16x8(const char *label, m128 vector) {
+static inline void print_m128_16x8(const char *label, m128 vec) {
     uint8_t ALIGN_ATTR(16) data[16];
-    store128(data, vector);
+    store128(data, vec);
     DEBUG_PRINTF("%12s: ", label);
     for(int i=15; i >=0; i--)
         printf("%02x ", data[i]);
     printf("\n");
 }
 
-static inline void print_m128_8x16(const char *label, m128 vector) {
+static inline void print_m128_8x16(const char *label, m128 vec) {
     uint16_t ALIGN_ATTR(16) data[8];
-    store128(data, vector);
+    store128(data, vec);
     DEBUG_PRINTF("%12s: ", label);
     for(int i=7; i >= 0; i--)
         printf("%04x ", data[i]);
     printf("\n");
 }
 
-static inline void print_m128_4x32(const char *label, m128 vector) {
+static inline void print_m128_4x32(const char *label, m128 vec) {
     uint32_t ALIGN_ATTR(16) data[4];
     store128(data, vector);
     DEBUG_PRINTF("%12s: ", label);
@@ -73,7 +73,7 @@ static inline void print_m128_4x32(const char *label, m128 vector) {
     printf("\n");
 }
 
-static inline void print_m128_2x64(const char *label, m128 vector) {
+static inline void print_m128_2x64(const char *label, m128 vec) {
     uint64_t ALIGN_ATTR(16) data[2];
     store128(data, vector);
     DEBUG_PRINTF("%12s: ", label);
@@ -82,10 +82,10 @@ static inline void print_m128_2x64(const char *label, m128 vector) {
     printf("\n");
 }
 #else
-#define print_m128_16x8(label, vector) ;
-#define print_m128_8x16(label, vector) ;
-#define print_m128_4x32(label, vector) ;
-#define print_m128_2x64(label, vector) ;
+#define print_m128_16x8(label, vec) ;
+#define print_m128_8x16(label, vec) ;
+#define print_m128_4x32(label, vec) ;
+#define print_m128_2x64(label, vec) ;
 #endif
 
 /****
index 129e63c9e2e2245fcee1d61ee2cf5b627547922a..b7c1b4f5c1c29dfb3fac640647782b81b1c7758b 100644 (file)
@@ -187,7 +187,7 @@ TEST(Shuffle, PackedExtract128_1) {
         // shuffle a single 1 bit to the front
         m128 permute, compare;
         build_pshufb_masks_onebit(i, &permute, &compare);
-       EXPECT_EQ(1U, packedExtract128(setbit<m128>(i), permute, compare));
+           EXPECT_EQ(1U, packedExtract128(setbit<m128>(i), permute, compare));
         EXPECT_EQ(1U, packedExtract128(ones128(), permute, compare));
         // we should get zero out of these cases
         EXPECT_EQ(0U, packedExtract128(zeroes128(), permute, compare));