From 1492060d7d962a452ec7a840bccdcea2b96793cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 18 Mar 2024 19:26:13 +0100 Subject: [PATCH] WIP: CI nits --- ci/no_assert_check.sh | 2 +- 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 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. -- 2.47.2