From 42c1a5e2be25e4455ca1baa1de135227f34dc1ae Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Fri, 25 Jun 2021 22:30:49 -0500 Subject: [PATCH] f --- src/pixie/images.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pixie/images.nim b/src/pixie/images.nim index 868320d..b1bfe7e 100644 --- a/src/pixie/images.nim +++ b/src/pixie/images.nim @@ -29,8 +29,7 @@ proc newImage*(mask: Mask): Image = var i: int when defined(amd64) and not defined(pixieNoSimd): for _ in countup(0, mask.data.len - 16, 4): - let values = mm_loadu_si128(mask.data[i].addr) - var alphas = unpackAlphaValues(values) + var alphas = unpackAlphaValues(mm_loadu_si128(mask.data[i].addr)) alphas = mm_or_si128(alphas, mm_srli_epi32(alphas, 8)) alphas = mm_or_si128(alphas, mm_srli_epi32(alphas, 16)) mm_storeu_si128(result.data[i].addr, alphas)