diff options
author | Måns Rullgård <mans@mansr.com> | 2009-09-23 13:52:56 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-09-23 13:52:56 +0000 |
commit | 9bda7f3063c0ddab193bb737ce3e5c37b6e84298 (patch) | |
tree | 0d3598dcd05d6799569963a203568e5b3d9c4d27 /libavcodec/arm/dsputil_neon_s.S | |
parent | b418a6ca7e34c7788ab172f9e8a7b39cfac2fda2 (diff) | |
download | ffmpeg-9bda7f3063c0ddab193bb737ce3e5c37b6e84298.tar.gz |
ARM: NEON optimised int32_to_float_fmul_scalar
Originally committed as revision 20000 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 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libavcodec/arm/dsputil_neon_s.S b/libavcodec/arm/dsputil_neon_s.S index b9779354fa..8fd055abbd 100644 --- a/libavcodec/arm/dsputil_neon_s.S +++ b/libavcodec/arm/dsputil_neon_s.S @@ -1023,3 +1023,31 @@ function ff_scalarproduct_float_neon, export=1 NOVFP vmov.32 r0, d0[0] bx lr .endfunc + +function ff_int32_to_float_fmul_scalar_neon, export=1 +VFP vdup.32 q0, d0[0] +VFP len .req r2 +NOVFP vdup.32 q0, r2 +NOVFP len .req r3 + + vld1.32 {q1},[r1,:128]! + vcvt.f32.s32 q3, q1 + vld1.32 {q2},[r1,:128]! + vcvt.f32.s32 q8, q2 +1: subs len, len, #8 + pld [r1, #16] + vmul.f32 q9, q3, q0 + vmul.f32 q10, q8, q0 + beq 2f + vld1.32 {q1},[r1,:128]! + vcvt.f32.s32 q3, q1 + vld1.32 {q2},[r1,:128]! + vcvt.f32.s32 q8, q2 + vst1.32 {q9}, [r0,:128]! + vst1.32 {q10},[r0,:128]! + b 1b +2: vst1.32 {q9}, [r0,:128]! + vst1.32 {q10},[r0,:128]! + bx lr + .unreq len + .endfunc |