From 0e0815617b9ed5175032071a3e961b4615af9a63 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Mon, 7 May 2012 22:33:51 +0000 Subject: [PATCH] Disable ARGB scaling on gcc 32 bit to avoid running out of GPR registers BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/563006 git-svn-id: http://libyuv.googlecode.com/svn/trunk@257 16f28f9a-4ce2-e073-06de-1de4eb20be90 --- source/scale_argb.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/scale_argb.cc b/source/scale_argb.cc index 64196815d..cc3b7957f 100644 --- a/source/scale_argb.cc +++ b/source/scale_argb.cc @@ -327,6 +327,9 @@ static void ScaleARGBRowDown2Int_SSE2(const uint8* src_ptr, int src_stride, ); } +#if defined(__x86_64__) +// TODO(fbarchard): 32 bit gcc runs out of registers. fix. + // Bilinear row filtering combines 4x2 -> 4x1. SSE2 version // TODO(fbarchard): write single inline instead of 3 and use single mul of diff #define HAS_SCALEARGBFILTERROWS_SSE2 @@ -524,6 +527,7 @@ static void ScaleARGBFilterRows_SSSE3(uint8* dst_ptr, } return; } +#endif // 64 bit #endif static void ScaleARGBRowDown2_C(const uint8* src_ptr, int,