diff --git a/src/pixie/simd/avx2.nim b/src/pixie/simd/avx2.nim index c702a4f..7bd9c9c 100644 --- a/src/pixie/simd/avx2.nim +++ b/src/pixie/simd/avx2.nim @@ -108,8 +108,8 @@ proc toPremultipliedAlphaAvx2*(data: var seq[ColorRGBA | ColorRGBX]) {.simd.} = let alphaMask = mm256_set1_epi32(cast[int32](0xff000000)) shuffleControl = mm256_set_epi8( - 15, 0, 15, 0, 11, 0, 11, 0, 7, 0, 7, 0, 3, 0, 3, 0, - 15, 0, 15, 0, 11, 0, 11, 0, 7, 0, 7, 0, 3, 0, 3, 0 + 15, -1, 15, -1, 11, -1, 11, -1, 7, -1, 7, -1, 3, -1, 3, -1, + 15, -1, 15, -1, 11, -1, 11, -1, 7, -1, 7, -1, 3, -1, 3, -1 ) oddMask = mm256_set1_epi16(0xff00) vec128 = mm256_set1_epi16(128) @@ -390,8 +390,8 @@ proc blitLineNormalAvx2*( vec255 = mm256_set1_epi8(255) vecAlpha255 = mm256_set1_epi32(cast[int32]([0.uint8, 255, 0, 255])) shuffleControl = mm256_set_epi8( - 15, 0, 15, 0, 11, 0, 11, 0, 7, 0, 7, 0, 3, 0, 3, 0, - 15, 0, 15, 0, 11, 0, 11, 0, 7, 0, 7, 0, 3, 0, 3, 0 + 15, -1, 15, -1, 11, -1, 11, -1, 7, -1, 7, -1, 3, -1, 3, -1, + 15, -1, 15, -1, 11, -1, 11, -1, 7, -1, 7, -1, 3, -1, 3, -1 ) var i: int @@ -439,8 +439,8 @@ proc blitLineMaskAvx2*( div255 = mm256_set1_epi16(cast[int16](0x8081)) vec255 = mm256_set1_epi8(255) shuffleControl = mm256_set_epi8( - 15, 0, 15, 0, 11, 0, 11, 0, 7, 0, 7, 0, 3, 0, 3, 0, - 15, 0, 15, 0, 11, 0, 11, 0, 7, 0, 7, 0, 3, 0, 3, 0 + 15, -1, 15, -1, 11, -1, 11, -1, 7, -1, 7, -1, 3, -1, 3, -1, + 15, -1, 15, -1, 11, -1, 11, -1, 7, -1, 7, -1, 3, -1, 3, -1 ) var i: int