mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
Remove #pragma clang loop vectorize_width
Recent versions of Clang started warning when the loop doesn't get vectorized, such as when compiling with -Oz (see bug). To fix the build, remove the pragma and let the compiler decide on its own when to vectorize. Bug: chromium:1015665 Change-Id: I40a610c9e0d94cfd577a6cd2b01e6fdaa08bef7d Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/1872580 Reviewed-by: Frank Barchard <fbarchard@chromium.org> Commit-Queue: Hans Wennborg <hans@chromium.org>
This commit is contained in:
parent
22f8aad8bc
commit
53b529e362
@ -3227,9 +3227,6 @@ void NV12ToRGB565Row_AVX2(const uint8_t* src_y,
|
||||
float ScaleSumSamples_C(const float* src, float* dst, float scale, int width) {
|
||||
float fsum = 0.f;
|
||||
int i;
|
||||
#if defined(__clang__)
|
||||
#pragma clang loop vectorize_width(4)
|
||||
#endif
|
||||
for (i = 0; i < width; ++i) {
|
||||
float v = *src++;
|
||||
fsum += v * v;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user