commit f36e220: [Minor] Use more portable _mm_loadu_si128

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jan 27 18:42:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-01-27 18:40:32 +0000
URL: https://github.com/rspamd/rspamd/commit/f36e220f91335ccdfbff489f5531c4325236a8e9 (HEAD -> master)

[Minor] Use more portable _mm_loadu_si128

---
 src/libutil/str_util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 5cee63baf..cb69a8b33 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -3374,8 +3374,8 @@ rspamd_str_has_8bit (const guchar *beg, gsize len)
 		n2 = n1;
 
 		while (len >= 32) {
-			__m128i xmm1 = _mm_lddqu_si128 ((const __m128i *)beg);
-			__m128i xmm2 = _mm_lddqu_si128 ((const __m128i *)nextd);
+			__m128i xmm1 = _mm_loadu_si128 ((const __m128i *)beg);
+			__m128i xmm2 = _mm_loadu_si128 ((const __m128i *)nextd);
 
 			n1 = _mm_or_si128 (n1, xmm1);
 			n2 = _mm_or_si128 (n2, xmm2);


More information about the Commits mailing list