[FFmpeg-cvslog] arm/intmath: disable av_clip_uintp2_arm with config_small
Michael Niedermayer
git at videolan.org
Tue Jun 12 23:09:16 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 12 23:04:16 2012 +0200| [2942431a0f94ecb77744a772c164ab71711ffe19] | committer: Michael Niedermayer
arm/intmath: disable av_clip_uintp2_arm with config_small
The code otherwise breaks compilation (gcc 4.5 tested but probably any compiler)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2942431a0f94ecb77744a772c164ab71711ffe19
---
libavutil/arm/intmath.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavutil/arm/intmath.h b/libavutil/arm/intmath.h
index 52af66e..f5a59a6 100644
--- a/libavutil/arm/intmath.h
+++ b/libavutil/arm/intmath.h
@@ -75,6 +75,7 @@ static av_always_inline av_const int16_t av_clip_int16_arm(int a)
return x;
}
+#if !CONFIG_SMALL //the code below cannot be compiled without always_inline
#define av_clip_uintp2 av_clip_uintp2_arm
static av_always_inline av_const unsigned av_clip_uintp2_arm(int a, int p)
{
@@ -82,7 +83,7 @@ static av_always_inline av_const unsigned av_clip_uintp2_arm(int a, int p)
__asm__ ("usat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p));
return x;
}
-
+#endif //!CONFIG_SMALL
#else /* HAVE_ARMV6 */
More information about the ffmpeg-cvslog
mailing list