diff arm/dsputil_init_neon.c @ 11243:e71b0be9ac79 libavcodec

ARM: NEON scalarproduct_int16 and scalarproduct_and_madd_int16 Patch by Kostya, minor fixes by me.
author mru
date Mon, 22 Feb 2010 12:20:31 +0000
parents 5506cbb012b4
children 2a4dc3c0b012
line wrap: on
line diff
--- a/arm/dsputil_init_neon.c	Mon Feb 22 09:47:12 2010 +0000
+++ b/arm/dsputil_init_neon.c	Mon Feb 22 12:20:31 2010 +0000
@@ -227,6 +227,11 @@
 
 void ff_vorbis_inverse_coupling_neon(float *mag, float *ang, int blocksize);
 
+int32_t ff_scalarproduct_int16_neon(int16_t *v1, int16_t *v2, int len,
+                                    int shift);
+int32_t ff_scalarproduct_and_madd_int16_neon(int16_t *v1, int16_t *v2,
+                                             int16_t *v3, int len, int mul);
+
 void ff_dsputil_init_neon(DSPContext *c, AVCodecContext *avctx)
 {
     if (!avctx->lowres) {
@@ -406,4 +411,7 @@
 
     if (CONFIG_VORBIS_DECODER)
         c->vorbis_inverse_coupling = ff_vorbis_inverse_coupling_neon;
+
+    c->scalarproduct_int16 = ff_scalarproduct_int16_neon;
+    c->scalarproduct_and_madd_int16 = ff_scalarproduct_and_madd_int16_neon;
 }