diff options
author | Måns Rullgård <mans@mansr.com> | 2009-09-22 20:37:55 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-09-22 20:37:55 +0000 |
commit | 275cfd1501c385857d0fecb827aa3a3a4177b102 (patch) | |
tree | ec1090ff74844ec5822602d1f9ff5d97744e5d4c /libavcodec/arm/dsputil_neon_s.S | |
parent | 0cb71412829dfe60421961a19a1deb1a8a52066a (diff) | |
download | ffmpeg-275cfd1501c385857d0fecb827aa3a3a4177b102.tar.gz |
ARM: NEON optimised scalarproduct_float
Originally committed as revision 19971 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/arm/dsputil_neon_s.S')
-rw-r--r-- | libavcodec/arm/dsputil_neon_s.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/arm/dsputil_neon_s.S b/libavcodec/arm/dsputil_neon_s.S index 8764cedc4e..b9779354fa 100644 --- a/libavcodec/arm/dsputil_neon_s.S +++ b/libavcodec/arm/dsputil_neon_s.S @@ -1010,3 +1010,16 @@ function ff_butterflies_float_neon, export=1 bgt 1b bx lr .endfunc + +function ff_scalarproduct_float_neon, export=1 + vmov.f32 q2, #0.0 +1: vld1.32 {q0},[r0,:128]! + vld1.32 {q1},[r1,:128]! + vmla.f32 q2, q0, q1 + subs r2, r2, #4 + bgt 1b + vadd.f32 d0, d4, d5 + vpadd.f32 d0, d0, d0 +NOVFP vmov.32 r0, d0[0] + bx lr + .endfunc |