From: Vladimír Čunát Date: Mon, 18 Mar 2024 18:26:13 +0000 (+0100) Subject: WIP: CI nits X-Git-Tag: v6.0.9~1^2~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fenvironments%2Fdocs-develop-rrl-8r8r8r%2Fdeployments%2F3509;p=thirdparty%2Fknot-resolver.git WIP: CI nits --- diff --git a/ci/no_assert_check.sh b/ci/no_assert_check.sh index a3f356323..610011a10 100755 --- a/ci/no_assert_check.sh +++ b/ci/no_assert_check.sh @@ -1,3 +1,3 @@ #!/bin/sh -grep '\' -- $(git ls-files | grep '\.[hc]$' | grep -vE '^(contrib|bench|tests)/') +grep '\' -- $(git ls-files | grep '\.[hc]$' | grep -vE '^(contrib|bench|tests|daemon/rrl)/') test $? -eq 1 diff --git a/daemon/rrl/kru.inc.c b/daemon/rrl/kru.inc.c index 3f1959cc1..01252a834 100644 --- a/daemon/rrl/kru.inc.c +++ b/daemon/rrl/kru.inc.c @@ -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.