This commit is contained in:
Ryan Oldenburg 2022-07-28 20:49:05 -05:00
parent b35319960e
commit 763a16bec4
2 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -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)