linkotec / ffts

The Fastest Fourier Transform in the South
http://anthonix.com/ffts
Other
136 stars 27 forks source link

Move ffts_aligned_malloc() and ffts_aligned_free() to the public API #12

Open emmenlau opened 2 years ago

emmenlau commented 2 years ago

The tests currently like to use _mm_malloc() or valloc() for aligned allocation in tests/test.c. Better and cleaner seems to be the use of ffts_aligned_malloc() and ffts_aligned_free(). And this may be also what downstream users want to use? Its at least in line with other FFT libraries.

This PR makes the methods public.

emmenlau commented 2 years ago

This should be a mostly harmless change, that brings ffts more in line with typical behavior of fftw and other fft libraries. Also it simplifies writing tests for ffts. Let me know what you think?

emmenlau commented 2 years ago

Anyone?