Philipp Maier | e8ae9fc | 2017-03-20 12:08:42 +0100 | [diff] [blame] | 1 | /* |
| 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 */ |
| 23 | void sse_conv_real4(const float *x, int x_len, |
| 24 | const float *h, int h_len, |
| 25 | float *y, int y_len, |
| 26 | int start, int len, int step, int offset); |
| 27 | |
| 28 | /* 8-tap SSE complex-real convolution */ |
| 29 | void sse_conv_real8(const float *x, int x_len, |
| 30 | const float *h, int h_len, |
| 31 | float *y, int y_len, |
| 32 | int start, int len, int step, int offset); |
| 33 | |
| 34 | /* 12-tap SSE complex-real convolution */ |
| 35 | void sse_conv_real12(const float *x, int x_len, |
| 36 | const float *h, int h_len, |
| 37 | float *y, int y_len, |
| 38 | int start, int len, int step, int offset); |
| 39 | |
| 40 | /* 16-tap SSE complex-real convolution */ |
| 41 | void sse_conv_real16(const float *x, int x_len, |
| 42 | const float *h, int h_len, |
| 43 | float *y, int y_len, |
| 44 | int start, int len, int step, int offset); |
| 45 | |
| 46 | /* 20-tap SSE complex-real convolution */ |
| 47 | void sse_conv_real20(const float *x, int x_len, |
| 48 | const float *h, int h_len, |
| 49 | float *y, int y_len, |
| 50 | int start, int len, int step, int offset); |
| 51 | |
| 52 | /* 4*N-tap SSE complex-real convolution */ |
| 53 | void sse_conv_real4n(const float *x, int x_len, |
| 54 | const float *h, int h_len, |
| 55 | float *y, int y_len, |
| 56 | int start, int len, int step, int offset); |
| 57 | |
| 58 | /* 4*N-tap SSE complex-complex convolution */ |
| 59 | void sse_conv_cmplx_4n(const float *x, int x_len, |
| 60 | const float *h, int h_len, |
| 61 | float *y, int y_len, |
| 62 | int start, int len, int step, int offset); |
| 63 | |
| 64 | /* 8*N-tap SSE complex-complex convolution */ |
| 65 | void sse_conv_cmplx_8n(const float *x, int x_len, |
| 66 | const float *h, int h_len, |
| 67 | float *y, int y_len, |
| 68 | int start, int len, int step, int offset); |