aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/aap_template.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi@remlab.net>2024-05-29 17:51:06 +0300
committerRémi Denis-Courmont <remi@remlab.net>2024-05-31 22:22:43 +0300
commitb1149520305839eaceeb20864f501c96d358731e (patch)
tree3bd12c34c419bec82c17ca71c572c150002f5536 /libavfilter/aap_template.c
parent73c278d2702cbf07d6c011c5867e08eab43896b0 (diff)
downloadffmpeg-b1149520305839eaceeb20864f501c96d358731e.tar.gz
lavfi: get rid of bespoke double scalar products
Diffstat (limited to 'libavfilter/aap_template.c')
-rw-r--r--libavfilter/aap_template.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/libavfilter/aap_template.c b/libavfilter/aap_template.c
index ea9c815a89..0e0580fb32 100644
--- a/libavfilter/aap_template.c
+++ b/libavfilter/aap_template.c
@@ -36,18 +36,6 @@
#define fn2(a,b) fn3(a,b)
#define fn(a) fn2(a, SAMPLE_FORMAT)
-#if DEPTH == 64
-static double scalarproduct_double(const double *v1, const double *v2, int len)
-{
- double p = 0.0;
-
- for (int i = 0; i < len; i++)
- p += v1[i] * v2[i];
-
- return p;
-}
-#endif
-
static ftype fn(fir_sample)(AudioAPContext *s, ftype sample, ftype *delay,
ftype *coeffs, ftype *tmp, int *offset)
{
@@ -60,7 +48,7 @@ static ftype fn(fir_sample)(AudioAPContext *s, ftype sample, ftype *delay,
#if DEPTH == 32
output = s->fdsp->scalarproduct_float(delay, tmp, s->kernel_size);
#else
- output = scalarproduct_double(delay, tmp, s->kernel_size);
+ output = s->fdsp->scalarproduct_double(delay, tmp, s->kernel_size);
#endif
if (--(*offset) < 0)