Skip to content
Snippets Groups Projects
Verified Commit 1492060d authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

WIP: CI nits

parent 98bf9136
Branches
Tags
1 merge request!1624Rate limiting
Pipeline #123427 waiting for manual action with stages
in 14 minutes and 54 seconds
#!/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
......@@ -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.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment