forked from myriadrf/libxtrxdsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxtrxdsp_x86_avx.c
61 lines (46 loc) · 1.83 KB
/
xtrxdsp_x86_avx.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* xtrxdsp avx optimization functions file
* Copyright (c) 2017 Sergey Kostanbaev <[email protected]>
* For more information, please visit: http://xtrx.io
*
* 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.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "xtrxdsp.h"
#ifdef __AVX__
#define UNALIGN_STORE
#define XTRXDSP_TEMPLATE_IQ16_SC32_SSE2
#define XTRXDSP_TEMPLATE_IQ12_SC32
#define XTRXDSP_TEMPLATE_IQ8_SC32
#define XTRXDSP_TEMPLATE_IQ8_IC16
#define XTRXDSP_TEMPLATE_IQ16_SC32I_SSE2
#define XTRXDSP_TEMPLATE_IQ12_SC32I
#define XTRXDSP_TEMPLATE_IQ8_SC32I
#define XTRXDSP_TEMPLATE_SC32_IQ16
#define XTRXDSP_TEMPLATE_SC32I_IQ16_AVX
#define XTRXDSP_TEMPLATE_IC16I_IQ16
#define XTRXDSP_TEMPLATE_IQ16_IC16I
#define XTRXDSP_TEMPLATE_IQ8_IC16I
#define XTRXDSP_TEMPLATE_IQ8_IC8I
#define XTRXDSP_TEMPLATE_SC32_CONV64_NAME _avx
#define XTRXDSP_TEMPLATE_SC32_CONV64_AVX
//#define XTRXDSP_TEMPLATE_B8_EXPAND_X2_NAME _avx
//#define XTRXDSP_TEMPLATE_B8_EXPAND_X2
//#define XTRXDSP_TEMPLATE_B8_EXPAND_X4_NAME _avx
//#define XTRXDSP_TEMPLATE_B8_EXPAND_X4
#define XTRXDSP_TEMPLATE_IQ16_CONV64_NAME _avx
#define XTRXDSP_TEMPLATE_IQ16_CONV64
#include "xtrxdsp_templates.c"
DECLARE_TEMPLATES(avx)
#endif