mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
Fix for AVX2 dither function.
Fix for 64 bit gcc parameter in dither function which requires m not r, when ABI uses register. BUG=none Review URL: https://codereview.chromium.org/1399463002 .
This commit is contained in:
parent
8f0cadede4
commit
fae8e66d43
@ -566,7 +566,7 @@ void ARGBToRGB565DitherRow_SSE2(const uint8* src, uint8* dst,
|
||||
: "+r"(src), // %0
|
||||
"+r"(dst), // %1
|
||||
"+r"(pix) // %2
|
||||
: "rm"(dither4) // %3
|
||||
: "m"(dither4) // %3
|
||||
: "memory", "cc",
|
||||
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"
|
||||
);
|
||||
@ -610,7 +610,7 @@ void ARGBToRGB565DitherRow_AVX2(const uint8* src, uint8* dst,
|
||||
: "+r"(src), // %0
|
||||
"+r"(dst), // %1
|
||||
"+r"(pix) // %2
|
||||
: "rm"(dither4) // %3
|
||||
: "m"(dither4) // %3
|
||||
: "memory", "cc",
|
||||
"xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user