mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 13:10:26 -04:00
changed code from memalign to _mm_malloc
This commit is contained in:
parent
0aaf69c005
commit
26f8faa6e8
@ -27,7 +27,9 @@ extern "C" {
|
||||
#ifdef USE_SIMD
|
||||
# include <xmmintrin.h>
|
||||
# define kiss_fft_scalar __m128
|
||||
#define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes)
|
||||
|
||||
//#define KISS_FFT_MALLOC(nbytes) memalign(16,nbytes)
|
||||
#define KISS_FFT_MALLOC(nbytes) _mm_malloc(nbytes,16)
|
||||
#else
|
||||
#define KISS_FFT_MALLOC malloc
|
||||
#endif
|
||||
|
@ -4,9 +4,9 @@ WARNINGS=-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return \
|
||||
-Wwrite-strings
|
||||
|
||||
# for x86 pentium+ machines , these flags work well
|
||||
#CFLAGS=-O3 -march=pentiumpro -ffast-math -fomit-frame-pointer -I.. -I../tools $(WARNINGS)
|
||||
CFLAGS=-O3 -march=pentiumpro -ffast-math -fomit-frame-pointer -I.. -I../tools $(WARNINGS)
|
||||
# If the above flags do not work, try the following
|
||||
CFLAGS=-O3 -mtune=native -ffast-math -fomit-frame-pointer -I.. -I../tools $(WARNINGS)
|
||||
#CFLAGS=-O3 -mtune=native -ffast-math -fomit-frame-pointer -I.. -I../tools $(WARNINGS)
|
||||
# TIP: try adding -openmp or -fopenmp to enable OPENMP directives and use of multiple cores
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user