avx/neon: remove double increment of the value

The span was incremented both in the for loop instruction
(ARRAY_FOREACH) and inside the loop body. Fixed.

@Issue: https://github.com/thorvg/thorvg/issues/3547
This commit is contained in:
Mira Grudzinska 2025-06-18 00:33:08 +02:00
parent 8b864c0c23
commit 3862fa802f
2 changed files with 0 additions and 4 deletions

View file

@ -206,8 +206,6 @@ static bool avxRasterTranslucentRle(SwSurface* surface, const SwRle* rle, uint8_
*dst = src + ALPHA_BLEND(*dst, ialpha);
dst++;
}
++span;
}
//8bit grayscale
} else if (surface->channelSize == sizeof(uint8_t)) {

View file

@ -125,8 +125,6 @@ static bool neonRasterTranslucentRle(SwSurface* surface, const SwRle* rle, uint8
auto leftovers = (span->len - align) % 2;
if (leftovers > 0) dst[span->len - 1] = src + ALPHA_BLEND(dst[span->len - 1], ialpha);
++span;
}
//8bit grayscale
} else if (surface->channelSize == sizeof(uint8_t)) {