History

floatdsp: move scalarproduct_float from dsputil to avfloatdsp.

This makes the aac decoder and all voice codecs independent of dsputil.

Ronald S. Bultje committed 13 years ago

Commit d56668b1 parent 5959bfa23 files · +142 −141Browse files

Showing the changes to libavcodec/arm (2 of 23 files). Show all

Unified · Split

2 files
  1. libavcodec/arm/dsputil_init_neon.c +0 −3
  2. libavcodec/arm/dsputil_neon.S +0 −13
libavcodec/arm/dsputil_init_neon.c+0−3
@@ -142,8 +142,6 @@ void ff_avg_h264_chroma_mc8_neon(uint8_t *, uint8_t *, int, int, int, int); · 141 unmodified lines
142142 void ff_avg_h264_chroma_mc4_neon(uint8_t *, uint8_t *, int, int, int, int);
143143 void ff_avg_h264_chroma_mc2_neon(uint8_t *, uint8_t *, int, int, int, int);
144144
145−float ff_scalarproduct_float_neon(const float *v1, const float *v2, int len);
146−
147145 void ff_vector_clipf_neon(float *dst, const float *src, float min, float max,
148146 int len);
149147 void ff_vector_clip_int32_neon(int32_t *dst, const int32_t *src, int32_t min,
@@ -293,7 +291,6 @@ void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx) · 143 unmodified lines
293291 c->avg_h264_qpel_pixels_tab[1][15] = ff_avg_h264_qpel8_mc33_neon;
294292 }
295293
296− c->scalarproduct_float = ff_scalarproduct_float_neon;
297294 c->vector_clipf = ff_vector_clipf_neon;
298295 c->vector_clip_int32 = ff_vector_clip_int32_neon;
299296
libavcodec/arm/dsputil_neon.S+0−13
@@ -531,19 +531,6 @@ function ff_add_pixels_clamped_neon, export=1 · 530 unmodified lines
531531 bx lr
532532 endfunc
533533
534−function ff_scalarproduct_float_neon, export=1
535− vmov.f32 q2, #0.0
536−1: vld1.32 {q0},[r0,:128]!
537− vld1.32 {q1},[r1,:128]!
538− vmla.f32 q2, q0, q1
539− subs r2, r2, #4
540− bgt 1b
541− vadd.f32 d0, d4, d5
542− vpadd.f32 d0, d0, d0
543−NOVFP vmov.32 r0, d0[0]
544− bx lr
545−endfunc
546−
547534 function ff_vector_clipf_neon, export=1
548535 VFP vdup.32 q1, d0[1]
549536 VFP vdup.32 q0, d0[0]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t