Commit Graph

105 Commits

Author SHA1 Message Date
Mark Borgerding
e321f7a4d7 dropped -Waggregate-return from warning flags as it created spurious warnings for recent c++ compilation (found through cmake build on CentOS 8) 2021-01-23 11:53:53 -05:00
Vasyl Gello
f88d5af578
Make kfc,fftnd,fftndr,fftr part of public API
Many programs explicitly use it, including those in Debian.
This was raised already in kissfft#39

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2021-01-21 17:10:20 +02:00
Vasyl Gello
c2e82a30e8
Build and install kissfft-tools
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
2021-01-21 17:08:33 +02:00
Anonymous Maarten
1487038a8a Use find_package COMPONENTS to select shared/static + datatype 2020-10-30 19:18:18 +01:00
Anonymous Maarten
a63dfc7f11 Build tools + tests with cmake + add VERSION + parallel install 2020-10-30 02:49:49 +01:00
Mark Borgerding
b2e0e600e5 Calling exit from library code is icky. Closes issue #49 2020-07-14 17:19:48 -04:00
Krzysztof Pawlak
7c47cc9957 Add common logging mechanism, use NDEBUG to turn off logging 2020-05-26 14:25:27 +02:00
Mark Borgerding
e53d6d4bea changed tabs to spaces for consistency and fix compiler warnings. Removed assert call (would require assert.h inclusion somewhere). 2020-04-19 10:02:45 -04:00
Ben Supnik
58cf0c0fc1 alignment fixing for USE_SIMD - all memory allocations are rounded
up to 16-byte boundaries.  This fixes crashes where the sub-buffers
for complex FFTs end up unaligned violating compiler expectations
2020-04-18 20:43:26 -04:00
Rikard Falkeborn
cfa9afee31 Add checks for memory failures 2018-11-28 00:38:01 +01:00
Rikard Falkeborn
5c845c5006 Free memory
This makes psdpng run clean under address sanitizer and valgrind.
2018-11-28 00:38:01 +01:00
Rikard Falkeborn
d8ccb037a0 Fix memset size
In the call to memset(), the size of the pointer to mag2buf was
erroneously used instead of size of what mag2buf pointed to (float).
This leads to problems on systems where the size of the pointer is
different from the size of floats. Instead of just fixing the size,
use calloc() instead of malloc() to directly set the memory to 0.
2018-11-28 00:37:29 +01:00
jianlijianli
7d72a4e2e1
Initialize subsize explicitly
This is added to avoid crash on some platforms.
2018-10-09 10:14:08 -07:00
Mark Borgerding
c8f89f77bf squelched multiple definition preprocessor warning 2018-07-21 11:11:51 -04:00
h.udo
f73b91d570
[BSD-3-Clause] Add missing copyright notice 2018-07-19 14:49:00 +01:00
h.udo
bc40eccbea
[BSD-3-Clause] Convert to SPDX license format 2018-07-19 14:49:00 +01:00
Stewart Hildebrand
8921e1a3b6 Use _mm_free on memory allocated with _mm_malloc.
kiss_fft_alloc and kiss_fftr_alloc internally use KISS_FFT_MALLOC to allocate memory, which is defined to _mm_malloc in a SIMD enabled application. Calling free() on memory allocated with _mm_malloc will result in unpredictable behavior. The configuration data allocated with _mm_malloc should be freed with a corresponding _mm_free.
2018-06-03 14:29:12 -04:00
Mark Borgerding
8a01c6085d merge and fixes for RedHat 5.5 gcc 64bit 2012-07-18 00:19:37 -04:00
Mark Borgerding
8fedba4d91 fixed warnings about ignored return value and wrong format code in printf 2012-07-17 23:30:31 -04:00
Mark Borgerding
dc6bfad0ab previous gcc versions might've been silently adding -lm at the end of the link line. 2012-07-15 22:35:28 -04:00
Mark Borgerding
d9906a3efb added padding in case of SIMD types 2011-06-20 09:59:38 -04:00
Mark Borgerding
e2baa5e270 fixed alignment issue with SIMD 2011-03-26 21:25:10 -04:00
Mark Borgerding
57925fd126 made threadsafe 2010-05-27 22:54:01 -04:00
Mark Borgerding
9dbaf860f2 put declarations at the top of the function ,ANSI style 2009-03-13 00:34:55 +00:00
Mark Borgerding
3df04c8671 openmp directives 2008-08-22 21:43:25 +00:00
Mark Borgerding
0bf7e586bc Memory footprint fix thanks to Galen Seitz 2007-01-02 16:20:17 +00:00
Mark Borgerding
277ec6a77d *** empty log message *** 2006-11-14 19:52:42 +00:00
Mark Borgerding
1922ba0d4e update benchmark tool to allow multi-dimensional and/or real FFTs 2006-11-14 19:40:58 +00:00
Mark Borgerding
97ce553a94 fwd, inverse N-d real FFTs now work to the best of my knowledge 2006-11-14 18:57:44 +00:00
Mark Borgerding
b4d5ded242 fwd kissfftndr sorta works, but the packing is wrong, or at least different from FFTW 2006-11-14 15:32:22 +00:00
Mark Borgerding
592d586c49 *** empty log message *** 2006-06-28 03:38:13 +00:00
Mark Borgerding
2cce2ea306 added kiss_fft_next_fast_size() to determine the next number divisible by the radices 2,3,5 2006-06-28 03:25:02 +00:00
Mark Borgerding
14c9235c44 added a check to hopefully satisfy some brain dead boundscheckers
and the folks who use them
2006-06-01 03:04:28 +00:00
Mark Borgerding
070d040425 getting ready for 1.2.4 2005-10-27 19:47:42 +00:00
Mark Borgerding
f088e415b4 real inverse fixed point fft scaling was broken. Now fixed is fixed. 2005-10-27 18:56:45 +00:00
Mark Borgerding
18d0ad1604 *** empty log message *** 2005-10-07 12:29:36 +00:00
Mark Borgerding
3b5dfee961 added kiss_fft_cleanup
updated Makefiles for long and simd targets
2005-07-09 03:42:07 +00:00
Mark Borgerding
4be23bffa4 polishing SIMD changes 2005-06-25 04:38:19 +00:00
Mark Borgerding
7f6cbeab2e added simd capability 2005-06-24 03:03:31 +00:00
Mark Borgerding
10dbc47ff3 added some code for 32 bit fixed point fft -- may not be suitable for all platforms 2005-05-31 02:19:07 +00:00
Mark Borgerding
ba105600b4 getting ready for v 1_2_2 2005-05-09 01:43:49 +00:00
Mark Borgerding
4722ccb12b getting ready for long-overdue 1.2.2 2005-05-07 03:02:10 +00:00
Mark Borgerding
473942ae5b *** empty log message *** 2004-07-24 15:27:44 +00:00
Mark Borgerding
4d603f2926 initialized value -- had no effect, but it bugged some guy who sent me email. 2004-07-20 00:33:47 +00:00
Mark Borgerding
0b11af8bea default CFLAGS 2004-04-04 22:02:16 +00:00
Mark Borgerding
75ca67f928 updated copyright years 2004-04-04 21:44:34 +00:00
Mark Borgerding
e3fe1598f0 bunch of minor code cleanup 2004-02-27 03:45:12 +00:00
Mark Borgerding
624f8edfd3 piddly little changes to fastfir stuff 2004-02-26 02:58:10 +00:00
Mark Borgerding
ac2eb527b7 fftnd now uses forward struct declaration 2004-02-24 01:38:52 +00:00
Mark Borgerding
dda6f9638e replaced void pointers with pointers to forward declared structs 2004-02-24 01:29:25 +00:00