]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
small optimization that was for some reason failing in ARM, should be faster anyway
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 24 Nov 2020 15:59:42 +0000 (17:59 +0200)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 24 Nov 2020 15:59:42 +0000 (17:59 +0200)
src/fdr/teddy.c

index 97cff0b4906ecbf2814ad1efb3c6be77a2be54ed..16947c6130550ba0f6478e8677b5025b52ceb819 100644 (file)
@@ -901,8 +901,10 @@ do {                                                                          \
 #define CONFIRM_TEDDY(var, bucket, offset, reason, conf_fn)                 \
 do {                                                                        \
     if (unlikely(diff128(var, ones128()))) {                                \
-        u64a lo = movq(var);                                                \
-        u64a hi = movq(rshiftbyte_m128(var, 8));                            \
+        u64a __attribute__((aligned(16))) vector[2];                        \
+        store128(vector, var);                                              \
+        u64a lo = vector[0];                                                \
+        u64a hi = vector[1];                                                \
         CONF_CHUNK_64(lo, bucket, offset, reason, conf_fn);                 \
         CONF_CHUNK_64(hi, bucket, offset + 8, reason, conf_fn);             \
     }                                                                       \