mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-07-19 05:24:29 -04:00
Allow user override of KISS_FFT_MALLOC and/or KISS_FFT_FREE on non-SIMD platforms
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user