mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 14:48:24 +00:00
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:
parent
8b864c0c23
commit
3862fa802f
2 changed files with 0 additions and 4 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue