From 34d2344458252469235b93f3461d2fa137aa9aa1 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Mon, 29 Oct 2012 20:26:11 +0000 Subject: [PATCH] noinline attribute for apple BUG=137 TEST=NONE Review URL: https://webrtc-codereview.appspot.com/929010 git-svn-id: http://libyuv.googlecode.com/svn/trunk@453 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- README.chromium | 2 +- include/libyuv/version.h | 2 +- source/row_posix.cc | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.chromium b/README.chromium index cca87702a..65633a63f 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 451 +Version: 453 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index b397fe1a4..c927693cb 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 451 +#define LIBYUV_VERSION 453 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/source/row_posix.cc b/source/row_posix.cc index ca97f1af6..f8fbc8527 100644 --- a/source/row_posix.cc +++ b/source/row_posix.cc @@ -24,8 +24,10 @@ extern "C" { // TODO(fbarchard): Use static const when gcc 4.2 support is dropped. #ifdef __APPLE__ #define CONST +#define NOINLINE __attribute__ ((noinline)) #else #define CONST static const +#define NOINLINE #endif #ifdef HAS_ARGBTOYROW_SSSE3 @@ -573,7 +575,7 @@ void ARGBToRAWRow_SSSE3(const uint8* src, uint8* dst, int pix) { ); } -void ARGBToRGB565Row_SSE2(const uint8* src, uint8* dst, int pix) { +void ARGBToRGB565Row_SSE2(const uint8* src, uint8* dst, int pix) NOINLINE { asm volatile ( "pcmpeqb %%xmm3,%%xmm3 \n" "psrld $0x1b,%%xmm3 \n" @@ -1768,7 +1770,7 @@ void OMITFP I422ToARGBRow_SSSE3(const uint8* y_buf, const uint8* u_buf, const uint8* v_buf, uint8* argb_buf, - int width) { + int width) NOINLINE { asm volatile ( "sub %[u_buf],%[v_buf] \n" "pcmpeqb %%xmm5,%%xmm5 \n"