blob: 2cbc03721389fb292a54bd0fa105124a9336beb8 [file] [log] [blame]
Philipp Maiere8ae9fc2017-03-20 12:08:42 +01001/*
2 * SSE Convolution
3 * Copyright (C) 2012, 2013 Thomas Tsou <tom@tsou.cc>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010014 */
15
16#pragma once
17
18/* 4-tap SSE complex-real convolution */
19void sse_conv_real4(const float *x, int x_len,
20 const float *h, int h_len,
21 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010022 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010023
24/* 8-tap SSE complex-real convolution */
25void sse_conv_real8(const float *x, int x_len,
26 const float *h, int h_len,
27 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010028 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010029
30/* 12-tap SSE complex-real convolution */
31void sse_conv_real12(const float *x, int x_len,
32 const float *h, int h_len,
33 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010034 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010035
36/* 16-tap SSE complex-real convolution */
37void sse_conv_real16(const float *x, int x_len,
38 const float *h, int h_len,
39 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010040 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010041
42/* 20-tap SSE complex-real convolution */
43void sse_conv_real20(const float *x, int x_len,
44 const float *h, int h_len,
45 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010046 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010047
48/* 4*N-tap SSE complex-real convolution */
49void sse_conv_real4n(const float *x, int x_len,
50 const float *h, int h_len,
51 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010052 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010053
54/* 4*N-tap SSE complex-complex convolution */
55void sse_conv_cmplx_4n(const float *x, int x_len,
56 const float *h, int h_len,
57 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010058 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010059
60/* 8*N-tap SSE complex-complex convolution */
61void sse_conv_cmplx_8n(const float *x, int x_len,
62 const float *h, int h_len,
63 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010064 int start, int len);