]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
state-compress: fix compiler error in storecompressed128_64bit (#379)
authorByeonguk Jeong <jungbu2855@gmail.com>
Wed, 1 Apr 2026 10:08:22 +0000 (19:08 +0900)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2026 10:08:22 +0000 (13:08 +0300)
Replace compress128 (vector op) + store128 pattern with per-chunk
compress64 (scalar op) to fix uninitialized variable warning on x[].

Signed-off-by: Byeonguk Jeong <jungbu2855@gmail.com>
src/util/state_compress.c

index fda5411265aa330152cfd9919d1605a485cc7596..390a4a12ba67c6678a9e8e5e763ce05f61128ce4 100644 (file)
@@ -125,11 +125,10 @@ void storecompressed128_64bit(void *ptr, m128 xvec, m128 mvec) {
     u32 ALIGN_ATTR(16) bits[2] = { popcount64(m[0]), popcount64(m[1]) };
 
     // Compress each 64-bit chunk individually.
-    xvec = compress128(xvec, mvec);
-    store128(x, xvec);
+    u64a v[2] = { compress64(x[0], m[0]), compress64(x[1], m[1]) };
 
     // Write packed data out.
-    pack_bits_64(ptr, x, bits, 2);
+    pack_bits_64(ptr, v, bits, 2);
 }
 #endif