]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
WIP: CI nits docs-develop-rrl-8r8r8r/deployments/3509
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 18 Mar 2024 18:26:13 +0000 (19:26 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 18 Mar 2024 18:26:13 +0000 (19:26 +0100)
ci/no_assert_check.sh
daemon/rrl/kru.inc.c

index a3f356323ecc00d6d9a6530caef9ba8938a6c772..610011a103cfd3b34d1569313e43bc182f3b59ff 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
-grep '\<assert\>' -- $(git ls-files | grep '\.[hc]$' | grep -vE '^(contrib|bench|tests)/')
+grep '\<assert\>' -- $(git ls-files | grep '\.[hc]$' | grep -vE '^(contrib|bench|tests|daemon/rrl)/')
 test $? -eq 1
index 3f1959cc1cc815b42e3f4c739db25d291da286fb..01252a834c5dca5038d54da01def90d9619b5979 100644 (file)
@@ -357,7 +357,8 @@ static inline bool kru_limited_update(struct kru *kru, struct query_ctx *ctx)
                        __m128i l0 = _mm_load_si128(l_v);
                        __m128i l1 = _mm_load_si128(l_v + 1);
                        // We want to avoid the first item in l0, so we maximize it.
-                       l0 = _mm_insert_epi16(l0, (1<<16)-1, 0);
+                       //  (but this function takes a signed integer, so -1 is the maximum)
+                       l0 = _mm_insert_epi16(l0, -1, 0);
 
                        // Only one instruction can find minimum and its position,
                        // and it works on 8x uint16_t.