aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/arm/dsputil_neon.S
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-07-02 17:21:02 +0100
committerMans Rullgard <mans@mansr.com>2011-07-02 18:24:41 +0100
commit8aa63f0b31544a63e107c67c519d6ccd11c94810 (patch)
treed2acc97bb78d89a133fc5bcdbb7d6f00b79a5af6 /libavcodec/arm/dsputil_neon.S
parent8f440223f6cb2b557ea6e34ca4079fbe415ecb9d (diff)
downloadffmpeg-8aa63f0b31544a63e107c67c519d6ccd11c94810.tar.gz
ARM: NEON optimised vector_clip_int32()
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/dsputil_neon.S')
-rw-r--r--libavcodec/arm/dsputil_neon.S16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavcodec/arm/dsputil_neon.S b/libavcodec/arm/dsputil_neon.S
index 5e3bf27f67..3b9b542a68 100644
--- a/libavcodec/arm/dsputil_neon.S
+++ b/libavcodec/arm/dsputil_neon.S
@@ -815,3 +815,19 @@ function ff_apply_window_int16_neon, export=1
pop {r4,pc}
endfunc
+
+function ff_vector_clip_int32_neon, export=1
+ vdup.32 q0, r2
+ vdup.32 q1, r3
+ ldr r2, [sp]
+1:
+ vld1.32 {q2-q3}, [r1,:128]!
+ vmin.s32 q2, q2, q1
+ vmin.s32 q3, q3, q1
+ vmax.s32 q2, q2, q0
+ vmax.s32 q3, q3, q0
+ vst1.32 {q2-q3}, [r0,:128]!
+ subs r2, r2, #8
+ bgt 1b
+ bx lr
+endfunc