Allow user override of KISS_FFT_MALLOC and/or KISS_FFT_FREE on non-SIMD platforms

This commit is contained in:
Brendan McDonnell 2019-08-07 12:07:02 -04:00
parent 24d23ffbb8
commit 033f759ee3

View File

@ -37,8 +37,13 @@ extern "C" {
# define KISS_FFT_MALLOC(nbytes) _mm_malloc(nbytes,16)
# define KISS_FFT_FREE _mm_free
#else
# define KISS_FFT_MALLOC malloc
# define KISS_FFT_FREE free
/* user may override KISS_FFT_MALLOC and/or KISS_FFT_FREE */
# ifndef KISS_FFT_MALLOC
# define KISS_FFT_MALLOC malloc
# endif
# ifndef KISS_FFT_FREE
# define KISS_FFT_FREE free
# endif
#endif