mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-08-31 02:14:24 -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_MALLOC(nbytes) _mm_malloc(nbytes,16)
|
||||||
# define KISS_FFT_FREE _mm_free
|
# define KISS_FFT_FREE _mm_free
|
||||||
#else
|
#else
|
||||||
# define KISS_FFT_MALLOC malloc
|
/* user may override KISS_FFT_MALLOC and/or KISS_FFT_FREE */
|
||||||
# define KISS_FFT_FREE free
|
# ifndef KISS_FFT_MALLOC
|
||||||
|
# define KISS_FFT_MALLOC malloc
|
||||||
|
# endif
|
||||||
|
# ifndef KISS_FFT_FREE
|
||||||
|
# define KISS_FFT_FREE free
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user