From 763a16bec49a47d22474a875692a9ec454292d44 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Thu, 28 Jul 2022 20:49:05 -0500 Subject: [PATCH] unused --- src/pixie/simd/avx2.nim | 3 --- src/pixie/simd/sse2.nim | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pixie/simd/avx2.nim b/src/pixie/simd/avx2.nim index b79f695..6b652d0 100644 --- a/src/pixie/simd/avx2.nim +++ b/src/pixie/simd/avx2.nim @@ -296,9 +296,6 @@ proc minifyBy2Avx2*(image: Image, power = 1): Image {.simd.} = ) let oddMask = mm256_set1_epi16(0xff00) - mergedMask = mm256_set_epi32( - 0, uint32.high, 0, uint32.high, 0, uint32.high, 0, uint32.high - ) permuteControl = mm256_set_epi32(7, 7, 7, 7, 6, 4, 2, 0) for y in 0 ..< resultEvenHeight: let diff --git a/src/pixie/simd/sse2.nim b/src/pixie/simd/sse2.nim index 84140de..33db05d 100644 --- a/src/pixie/simd/sse2.nim +++ b/src/pixie/simd/sse2.nim @@ -350,9 +350,7 @@ proc minifyBy2Sse2*(image: Image, power = 1): Image {.simd.} = if srcWidthIsOdd: resultEvenWidth + 1 else: resultEvenWidth, if srcHeightIsOdd: resultEvenHeight + 1 else: resultEvenHeight ) - let - oddMask = mm_set1_epi16(0xff00) - mergedMask = mm_set_epi32(0, uint32.high, 0, uint32.high) + let oddMask = mm_set1_epi16(0xff00) for y in 0 ..< resultEvenHeight: let topRowStart = src.dataIndex(0, y * 2)