mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-06-04 01:28:23 -04:00
Allow user override of KISS_FFT_MALLOC and/or KISS_FFT_FREE on non-SIMD platforms
This commit is contained in:
parent
24d23ffbb8
commit
033f759ee3
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user