Commit 34d23444 authored by fbarchard@google.com's avatar fbarchard@google.com

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
parent 15449263
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 451 Version: 453
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -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 451 #define LIBYUV_VERSION 453
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
...@@ -24,8 +24,10 @@ extern "C" { ...@@ -24,8 +24,10 @@ extern "C" {
// TODO(fbarchard): Use static const when gcc 4.2 support is dropped. // TODO(fbarchard): Use static const when gcc 4.2 support is dropped.
#ifdef __APPLE__ #ifdef __APPLE__
#define CONST #define CONST
#define NOINLINE __attribute__ ((noinline))
#else #else
#define CONST static const #define CONST static const
#define NOINLINE
#endif #endif
#ifdef HAS_ARGBTOYROW_SSSE3 #ifdef HAS_ARGBTOYROW_SSSE3
...@@ -573,7 +575,7 @@ void ARGBToRAWRow_SSSE3(const uint8* src, uint8* dst, int pix) { ...@@ -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 ( asm volatile (
"pcmpeqb %%xmm3,%%xmm3 \n" "pcmpeqb %%xmm3,%%xmm3 \n"
"psrld $0x1b,%%xmm3 \n" "psrld $0x1b,%%xmm3 \n"
...@@ -1768,7 +1770,7 @@ void OMITFP I422ToARGBRow_SSSE3(const uint8* y_buf, ...@@ -1768,7 +1770,7 @@ void OMITFP I422ToARGBRow_SSSE3(const uint8* y_buf,
const uint8* u_buf, const uint8* u_buf,
const uint8* v_buf, const uint8* v_buf,
uint8* argb_buf, uint8* argb_buf,
int width) { int width) NOINLINE {
asm volatile ( asm volatile (
"sub %[u_buf],%[v_buf] \n" "sub %[u_buf],%[v_buf] \n"
"pcmpeqb %%xmm5,%%xmm5 \n" "pcmpeqb %%xmm5,%%xmm5 \n"
......
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