Fix for NaCl store string, which needs source reg.

BUG=253
TEST=ncval
R=fbarchard@google.com

Review URL: https://webrtc-codereview.appspot.com/1991004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@751 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
nfullagar@google.com 2013-08-08 19:58:03 +00:00
parent 22402bfa6f
commit 341b17a250
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 750
Version: 751
License: BSD
License File: LICENSE

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 750
#define LIBYUV_VERSION 751
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT

View File

@ -27,7 +27,7 @@ extern "C" {
#define MEMLEA4(offset, base, index, scale) \
#offset "(%q" #base ",%q" #index "," #scale ")"
#define MEMMOVESTRING(s, d) "%%nacl:(%q" #s "),%%nacl:(%q" #d "), %%r15"
#define MEMSTORESTRING(d) "%%nacl:(%q" #d "), %%r15"
#define MEMSTORESTRING(reg, d) "%%" #reg ",%%nacl:(%q" #d "), %%r15"
#else
#define MEMACCESS(base) "(%" #base ")"
#define MEMACCESS2(offset, base) #offset "(%" #base ")"
@ -35,7 +35,7 @@ extern "C" {
#define MEMLEA4(offset, base, index, scale) \
#offset "(%" #base ",%" #index "," #scale ")"
#define MEMMOVESTRING(s, d)
#define MEMSTORESTRING(d)
#define MEMSTORESTRING(reg, d)
#endif
#if defined(HAS_ARGBTOYROW_SSSE3) || defined(HAS_ARGBGRAYROW_SSSE3)
@ -3074,7 +3074,7 @@ void SetRow_X86(uint8* dst, uint32 v32, int width) {
size_t width_tmp = static_cast<size_t>(width);
asm volatile (
"shr $0x2,%1 \n"
"rep stosl "MEMSTORESTRING(0)" \n"
"rep stosl "MEMSTORESTRING(eax,0)" \n"
: "+D"(dst), // %0
"+c"(width_tmp) // %1
: "a"(v32) // %2
@ -3087,7 +3087,7 @@ void ARGBSetRows_X86(uint8* dst, uint32 v32, int width,
size_t width_tmp = static_cast<size_t>(width);
uint32* d = reinterpret_cast<uint32*>(dst);
asm volatile (
"rep stosl "MEMSTORESTRING(0)" \n"
"rep stosl "MEMSTORESTRING(eax,0)" \n"
: "+D"(d), // %0
"+c"(width_tmp) // %1
: "a"(v32) // %2