diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2024-03-18 19:26:13 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2024-03-18 19:26:13 +0100 |
commit | 1492060d7d962a452ec7a840bccdcea2b96793cc (patch) | |
tree | 84cb6cbd7c5c1b6cc71969bc5894ff4ea87e204a | |
parent | TMP: replace symlinks by contents (diff) | |
download | knot-resolver-1492060d7d962a452ec7a840bccdcea2b96793cc.tar.xz knot-resolver-1492060d7d962a452ec7a840bccdcea2b96793cc.zip |
WIP: CI nits
-rwxr-xr-x | ci/no_assert_check.sh | 2 | ||||
-rw-r--r-- | daemon/rrl/kru.inc.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/ci/no_assert_check.sh b/ci/no_assert_check.sh index a3f35632..610011a1 100755 --- a/ci/no_assert_check.sh +++ b/ci/no_assert_check.sh @@ -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 diff --git a/daemon/rrl/kru.inc.c b/daemon/rrl/kru.inc.c index 3f1959cc..01252a83 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. |