2017-03-20 11:08:42 +00:00
|
|
|
/*
|
|
|
|
* SSE Convolution
|
|
|
|
* Copyright (C) 2012, 2013 Thomas Tsou <tom@tsou.cc>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/* 4-tap SSE complex-real convolution */
|
|
|
|
void sse_conv_real4(const float *x, int x_len,
|
|
|
|
const float *h, int h_len,
|
|
|
|
float *y, int y_len,
|
2018-12-20 18:10:26 +00:00
|
|
|
int start, int len);
|
2017-03-20 11:08:42 +00:00
|
|
|
|
|
|
|
/* 8-tap SSE complex-real convolution */
|
|
|
|
void sse_conv_real8(const float *x, int x_len,
|
|
|
|
const float *h, int h_len,
|
|
|
|
float *y, int y_len,
|
2018-12-20 18:10:26 +00:00
|
|
|
int start, int len);
|
2017-03-20 11:08:42 +00:00
|
|
|
|
|
|
|
/* 12-tap SSE complex-real convolution */
|
|
|
|
void sse_conv_real12(const float *x, int x_len,
|
|
|
|
const float *h, int h_len,
|
|
|
|
float *y, int y_len,
|
2018-12-20 18:10:26 +00:00
|
|
|
int start, int len);
|
2017-03-20 11:08:42 +00:00
|
|
|
|
|
|
|
/* 16-tap SSE complex-real convolution */
|
|
|
|
void sse_conv_real16(const float *x, int x_len,
|
|
|
|
const float *h, int h_len,
|
|
|
|
float *y, int y_len,
|
2018-12-20 18:10:26 +00:00
|
|
|
int start, int len);
|
2017-03-20 11:08:42 +00:00
|
|
|
|
|
|
|
/* 20-tap SSE complex-real convolution */
|
|
|
|
void sse_conv_real20(const float *x, int x_len,
|
|
|
|
const float *h, int h_len,
|
|
|
|
float *y, int y_len,
|
2018-12-20 18:10:26 +00:00
|
|
|
int start, int len);
|
2017-03-20 11:08:42 +00:00
|
|
|
|
|
|
|
/* 4*N-tap SSE complex-real convolution */
|
|
|
|
void sse_conv_real4n(const float *x, int x_len,
|
|
|
|
const float *h, int h_len,
|
|
|
|
float *y, int y_len,
|
2018-12-20 18:10:26 +00:00
|
|
|
int start, int len);
|
2017-03-20 11:08:42 +00:00
|
|
|
|
|
|
|
/* 4*N-tap SSE complex-complex convolution */
|
|
|
|
void sse_conv_cmplx_4n(const float *x, int x_len,
|
|
|
|
const float *h, int h_len,
|
|
|
|
float *y, int y_len,
|
2018-12-20 18:10:26 +00:00
|
|
|
int start, int len);
|
2017-03-20 11:08:42 +00:00
|
|
|
|
|
|
|
/* 8*N-tap SSE complex-complex convolution */
|
|
|
|
void sse_conv_cmplx_8n(const float *x, int x_len,
|
|
|
|
const float *h, int h_len,
|
|
|
|
float *y, int y_len,
|
2018-12-20 18:10:26 +00:00
|
|
|
int start, int len);
|