Commit 1253091d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '76ce9bd8'

* commit '76ce9bd8':
  libavutil: Add ARM av_clip_intp2_arm
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 88d850ec 76ce9bd8
......@@ -62,6 +62,14 @@ static av_always_inline av_const int av_clip_int16_arm(int a)
return x;
}
#define av_clip_intp2 av_clip_intp2_arm
static av_always_inline av_const int av_clip_intp2_arm(int a, int p)
{
unsigned x;
__asm__ ("ssat %0, %2, %1" : "=r"(x) : "r"(a), "i"(p+1));
return x;
}
#define av_clip_uintp2 av_clip_uintp2_arm
static av_always_inline av_const unsigned av_clip_uintp2_arm(int a, int p)
{
......
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