From 37041d6790a74d170fda9c9f8952f823b70563f2 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Mon, 20 Jun 2022 21:31:12 -0500 Subject: [PATCH] f --- src/pixie/masks.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixie/masks.nim b/src/pixie/masks.nim index aa42526..6a45862 100644 --- a/src/pixie/masks.nim +++ b/src/pixie/masks.nim @@ -316,7 +316,7 @@ proc ceil*(mask: Mask) {.raises: [].} = when defined(amd64) and allowSimd: let zeroVec = mm_setzero_si128() - vec255 = mm_set1_epi32(cast[int32](uint32.high)) + vec255 = mm_set1_epi8(255) for _ in 0 ..< mask.data.len div 16: var values = mm_loadu_si128(mask.data[i].addr) values = mm_cmpeq_epi8(values, zeroVec)