Commit 992c3b08 authored by fbarchard@google.com's avatar fbarchard@google.com

Use HAS_ARGBSETROWS_X86 to detect presence of function.

BUG=none
TESTED=rectangle unittests
R=harryjin@google.com

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

git-svn-id: http://libyuv.googlecode.com/svn/trunk@1218 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 61ffd847
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 1217 Version: 1218
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -114,6 +114,7 @@ extern "C" { ...@@ -114,6 +114,7 @@ extern "C" {
#define HAS_RGBATOUVROW_SSSE3 #define HAS_RGBATOUVROW_SSSE3
#define HAS_RGBATOYROW_SSSE3 #define HAS_RGBATOYROW_SSSE3
#define HAS_SETROW_X86 #define HAS_SETROW_X86
#define HAS_ARGBSETROWS_X86
#define HAS_SPLITUVROW_SSE2 #define HAS_SPLITUVROW_SSE2
#define HAS_UYVYTOARGBROW_SSSE3 #define HAS_UYVYTOARGBROW_SSSE3
#define HAS_UYVYTOUV422ROW_SSE2 #define HAS_UYVYTOUV422ROW_SSE2
......
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1217 #define LIBYUV_VERSION 1218
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
...@@ -1166,13 +1166,13 @@ int ARGBRect(uint8* dst_argb, int dst_stride_argb, ...@@ -1166,13 +1166,13 @@ int ARGBRect(uint8* dst_argb, int dst_stride_argb,
height = 1; height = 1;
dst_stride_argb = 0; dst_stride_argb = 0;
} }
#if defined(HAS_SETROW_NEON) #if defined(HAS_ARGBSETROWS_NEON)
if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 16)) { if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 16)) {
ARGBSetRows_NEON(dst_argb, value, width, dst_stride_argb, height); ARGBSetRows_NEON(dst_argb, value, width, dst_stride_argb, height);
return 0; return 0;
} }
#endif #endif
#if defined(HAS_SETROW_X86) #if defined(HAS_ARGBSETROWS_X86)
if (TestCpuFlag(kCpuHasX86)) { if (TestCpuFlag(kCpuHasX86)) {
ARGBSetRows_X86(dst_argb, value, width, dst_stride_argb, height); ARGBSetRows_X86(dst_argb, value, width, dst_stride_argb, height);
return 0; return 0;
......
...@@ -1625,7 +1625,7 @@ void CopyRow_16_C(const uint16* src, uint16* dst, int count) { ...@@ -1625,7 +1625,7 @@ void CopyRow_16_C(const uint16* src, uint16* dst, int count) {
void SetRow_C(uint8* dst, uint32 v8, int count) { void SetRow_C(uint8* dst, uint32 v8, int count) {
#ifdef _MSC_VER #ifdef _MSC_VER
// VC will generate rep stosb. // VisualC will generate rep stosb.
int x; int x;
for (x = 0; x < count; ++x) { for (x = 0; x < count; ++x) {
dst[x] = v8; dst[x] = v8;
......
...@@ -2848,7 +2848,7 @@ void ARGBCopyYToAlphaRow_AVX2(const uint8* src, uint8* dst, int width) { ...@@ -2848,7 +2848,7 @@ void ARGBCopyYToAlphaRow_AVX2(const uint8* src, uint8* dst, int width) {
#endif // HAS_ARGBCOPYYTOALPHAROW_AVX2 #endif // HAS_ARGBCOPYYTOALPHAROW_AVX2
#ifdef HAS_SETROW_X86 #ifdef HAS_SETROW_X86
// SetRow8 writes 'count' bytes using a 32 bit value repeated. // SetRow writes 'count' bytes using a 32 bit value repeated.
__declspec(naked) __declspec(align(16)) __declspec(naked) __declspec(align(16))
void SetRow_X86(uint8* dst, uint32 v32, int count) { void SetRow_X86(uint8* dst, uint32 v32, int count) {
__asm { __asm {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment