mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 01:06:46 +08:00
gcc port fixed for alpha
BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/449002 git-svn-id: http://libyuv.googlecode.com/svn/trunk@211 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
976423feca
commit
2217ced8cd
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 210
|
||||
Version: 211
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 210
|
||||
#define LIBYUV_VERSION 211
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
|
||||
@ -1928,6 +1928,8 @@ void ARGBBlendRow_SSE2(const uint8* src_argb, uint8* dst_argb, int width) {
|
||||
uint32 pixel = 0;
|
||||
asm volatile (
|
||||
"pcmpeqb %%xmm4,%%xmm4 \n"
|
||||
"pcmpeqb %%xmm5,%%xmm5 \n"
|
||||
"pslld $24,%%xmm5 \n"
|
||||
"sub %0,%1 \n"
|
||||
"mov (%0),%3 \n"
|
||||
"sub $0x1,%2 \n"
|
||||
@ -1959,16 +1961,15 @@ void ARGBBlendRow_SSE2(const uint8* src_argb, uint8* dst_argb, int width) {
|
||||
"jae 2b \n" // opaqueloop
|
||||
"cmp $0xffffff,%3 \n"
|
||||
"jbe 1b \n" // transparentloop
|
||||
"nop \n"
|
||||
|
||||
// translucentloop
|
||||
"3: \n"
|
||||
"movd %3,%%xmm0 \n"
|
||||
"mov (%0,%1,1),%3 \n"
|
||||
"movd %3,%%xmm1 \n"
|
||||
"movq (%0),%%xmm0 \n"
|
||||
"movq (%0,%1,1),%%xmm1 \n"
|
||||
"punpcklbw %%xmm0,%%xmm0 \n"
|
||||
"punpcklbw %%xmm1,%%xmm1 \n"
|
||||
"pshuflw $0xff,%%xmm0,%%xmm2 \n"
|
||||
"pshufhw $0xff,%%xmm2,%%xmm2 \n"
|
||||
"movdqa %%xmm2,%%xmm3 \n"
|
||||
"pxor %%xmm4,%%xmm3 \n"
|
||||
"pmulhuw %%xmm2,%%xmm0 \n"
|
||||
@ -1976,8 +1977,8 @@ void ARGBBlendRow_SSE2(const uint8* src_argb, uint8* dst_argb, int width) {
|
||||
"paddusw %%xmm1,%%xmm0 \n"
|
||||
"psrlw $0x8,%%xmm0 \n"
|
||||
"packuswb %%xmm0,%%xmm0 \n"
|
||||
"movd %%xmm0,%3 \n"
|
||||
"mov %3,(%0,%1,1) \n"
|
||||
"por %%xmm5,%%xmm0 \n"
|
||||
"movq %%xmm0,(%0,%1,1) \n"
|
||||
"lea 0x8(%0),%0 \n"
|
||||
"sub $0x2,%2 \n"
|
||||
"jle 8f \n" // last1
|
||||
@ -2019,7 +2020,7 @@ void ARGBBlendRow_SSE2(const uint8* src_argb, uint8* dst_argb, int width) {
|
||||
:
|
||||
: "memory", "cc"
|
||||
#if defined(__SSE2__)
|
||||
, "xmm0", "xmm1", "xmm2", "xmm3", "xmm4"
|
||||
, "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5"
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user