blob: d929ef69e9e72d5b3d1b00e7c922f8c38bc37dbb [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.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#pragma once
21
22/* 4-tap SSE complex-real convolution */
23void sse_conv_real4(const float *x, int x_len,
24 const float *h, int h_len,
25 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010026 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010027
28/* 8-tap SSE complex-real convolution */
29void sse_conv_real8(const float *x, int x_len,
30 const float *h, int h_len,
31 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010032 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010033
34/* 12-tap SSE complex-real convolution */
35void sse_conv_real12(const float *x, int x_len,
36 const float *h, int h_len,
37 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010038 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010039
40/* 16-tap SSE complex-real convolution */
41void sse_conv_real16(const float *x, int x_len,
42 const float *h, int h_len,
43 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010044 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010045
46/* 20-tap SSE complex-real convolution */
47void sse_conv_real20(const float *x, int x_len,
48 const float *h, int h_len,
49 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010050 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010051
52/* 4*N-tap SSE complex-real convolution */
53void sse_conv_real4n(const float *x, int x_len,
54 const float *h, int h_len,
55 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010056 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010057
58/* 4*N-tap SSE complex-complex convolution */
59void sse_conv_cmplx_4n(const float *x, int x_len,
60 const float *h, int h_len,
61 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010062 int start, int len);
Philipp Maiere8ae9fc2017-03-20 12:08:42 +010063
64/* 8*N-tap SSE complex-complex convolution */
65void sse_conv_cmplx_8n(const float *x, int x_len,
66 const float *h, int h_len,
67 float *y, int y_len,
Sylvain Munauta3934a12018-12-20 19:10:26 +010068 int start, int len);