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