| OLD | NEW |
| 1 /* Copyright (c) 2015 Xiph.Org Foundation | 1 /* Copyright (c) 2015 Xiph.Org Foundation |
| 2 Written by Viswanath Puttagunta */ | 2 Written by Viswanath Puttagunta */ |
| 3 /** | 3 /** |
| 4 @file celt_ne10_fft.c | 4 @file celt_ne10_fft.c |
| 5 @brief ARM Neon optimizations for fft using NE10 library | 5 @brief ARM Neon optimizations for fft using NE10 library |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 /* | 8 /* |
| 9 Redistribution and use in source and binary forms, with or without | 9 Redistribution and use in source and binary forms, with or without |
| 10 modification, are permitted provided that the following conditions | 10 modification, are permitted provided that the following conditions |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 29 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 30 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 30 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 */ | 31 */ |
| 32 | 32 |
| 33 #ifndef SKIP_CONFIG_H | 33 #ifndef SKIP_CONFIG_H |
| 34 #ifdef HAVE_CONFIG_H | 34 #ifdef HAVE_CONFIG_H |
| 35 #include "config.h" | 35 #include "config.h" |
| 36 #endif | 36 #endif |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 #include <NE10_init.h> | |
| 40 #include <NE10_dsp.h> | 39 #include <NE10_dsp.h> |
| 41 #include "os_support.h" | 40 #include "os_support.h" |
| 42 #include "kiss_fft.h" | 41 #include "kiss_fft.h" |
| 43 #include "stack_alloc.h" | 42 #include "stack_alloc.h" |
| 44 | 43 |
| 45 #if !defined(FIXED_POINT) | 44 #if !defined(FIXED_POINT) |
| 46 # define NE10_FFT_ALLOC_C2C_TYPE_NEON ne10_fft_alloc_c2c_float32_neon | 45 # define NE10_FFT_ALLOC_C2C_TYPE_NEON ne10_fft_alloc_c2c_float32_neon |
| 47 # define NE10_FFT_CFG_TYPE_T ne10_fft_cfg_float32_t | 46 # define NE10_FFT_CFG_TYPE_T ne10_fft_cfg_float32_t |
| 48 # define NE10_FFT_STATE_TYPE_T ne10_fft_state_float32_t | 47 # define NE10_FFT_STATE_TYPE_T ne10_fft_state_float32_t |
| 49 # define NE10_FFT_DESTROY_C2C_TYPE ne10_fft_destroy_c2c_float32 | 48 # define NE10_FFT_DESTROY_C2C_TYPE ne10_fft_destroy_c2c_float32 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 (NE10_FFT_CPX_TYPE_T *)fin, | 164 (NE10_FFT_CPX_TYPE_T *)fin, |
| 166 cfg, 1); | 165 cfg, 1); |
| 167 #else | 166 #else |
| 168 NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, | 167 NE10_FFT_C2C_1D_TYPE_NEON((NE10_FFT_CPX_TYPE_T *)fout, |
| 169 (NE10_FFT_CPX_TYPE_T *)fin, | 168 (NE10_FFT_CPX_TYPE_T *)fin, |
| 170 cfg, 1, 0); | 169 cfg, 1, 0); |
| 171 #endif | 170 #endif |
| 172 } | 171 } |
| 173 RESTORE_STACK; | 172 RESTORE_STACK; |
| 174 } | 173 } |
| OLD | NEW |