Commit Graph

96 Commits

Author SHA1 Message Date
cfa9afee31 Add checks for memory failures 2018-11-28 00:38:01 +01:00
5c845c5006 Free memory
This makes psdpng run clean under address sanitizer and valgrind.
2018-11-28 00:38:01 +01:00
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
7d72a4e2e1 Initialize subsize explicitly
This is added to avoid crash on some platforms.
2018-10-09 10:14:08 -07:00
c8f89f77bf squelched multiple definition preprocessor warning 2018-07-21 11:11:51 -04:00
f73b91d570 [BSD-3-Clause] Add missing copyright notice 2018-07-19 14:49:00 +01:00
bc40eccbea [BSD-3-Clause] Convert to SPDX license format 2018-07-19 14:49:00 +01:00
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
8a01c6085d merge and fixes for RedHat 5.5 gcc 64bit 2012-07-18 00:19:37 -04:00
8fedba4d91 fixed warnings about ignored return value and wrong format code in printf 2012-07-17 23:30:31 -04:00
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
d9906a3efb added padding in case of SIMD types 2011-06-20 09:59:38 -04:00
e2baa5e270 fixed alignment issue with SIMD 2011-03-26 21:25:10 -04:00
57925fd126 made threadsafe 2010-05-27 22:54:01 -04:00
9dbaf860f2 put declarations at the top of the function ,ANSI style 2009-03-13 00:34:55 +00:00
3df04c8671 openmp directives 2008-08-22 21:43:25 +00:00
0bf7e586bc Memory footprint fix thanks to Galen Seitz 2007-01-02 16:20:17 +00:00
277ec6a77d *** empty log message *** 2006-11-14 19:52:42 +00:00
1922ba0d4e update benchmark tool to allow multi-dimensional and/or real FFTs 2006-11-14 19:40:58 +00:00
97ce553a94 fwd, inverse N-d real FFTs now work to the best of my knowledge 2006-11-14 18:57:44 +00:00
b4d5ded242 fwd kissfftndr sorta works, but the packing is wrong, or at least different from FFTW 2006-11-14 15:32:22 +00:00
592d586c49 *** empty log message *** 2006-06-28 03:38:13 +00:00
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
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
070d040425 getting ready for 1.2.4 2005-10-27 19:47:42 +00:00
f088e415b4 real inverse fixed point fft scaling was broken. Now fixed is fixed. 2005-10-27 18:56:45 +00:00
18d0ad1604 *** empty log message *** 2005-10-07 12:29:36 +00:00
3b5dfee961 added kiss_fft_cleanup
updated Makefiles for long and simd targets
2005-07-09 03:42:07 +00:00
4be23bffa4 polishing SIMD changes 2005-06-25 04:38:19 +00:00
7f6cbeab2e added simd capability 2005-06-24 03:03:31 +00:00
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
ba105600b4 getting ready for v 1_2_2 2005-05-09 01:43:49 +00:00
4722ccb12b getting ready for long-overdue 1.2.2 2005-05-07 03:02:10 +00:00
473942ae5b *** empty log message *** 2004-07-24 15:27:44 +00:00
4d603f2926 initialized value -- had no effect, but it bugged some guy who sent me email. 2004-07-20 00:33:47 +00:00
0b11af8bea default CFLAGS 2004-04-04 22:02:16 +00:00
75ca67f928 updated copyright years 2004-04-04 21:44:34 +00:00
e3fe1598f0 bunch of minor code cleanup 2004-02-27 03:45:12 +00:00
624f8edfd3 piddly little changes to fastfir stuff 2004-02-26 02:58:10 +00:00
ac2eb527b7 fftnd now uses forward struct declaration 2004-02-24 01:38:52 +00:00
dda6f9638e replaced void pointers with pointers to forward declared structs 2004-02-24 01:29:25 +00:00
16ac58df93 : 2004-02-02 03:51:52 +00:00
1d58b0eced fix for inplace odd rank multi-dimensional ffts 2004-02-02 01:49:08 +00:00
b9edc58bad psdpng does not yet work, but it will create a png 2004-02-01 22:12:35 +00:00
75393dc4fa *** empty log message *** 2004-01-31 16:26:42 +00:00
366f17e379 getting ready for 1.1 2004-01-31 01:28:21 +00:00
9ddb2bb744 *** empty log message *** 2004-01-30 03:40:54 +00:00
6f99fc129a impulse response was bass ackwards 2004-01-30 02:47:35 +00:00
9b738dc492 slight fast fir changes 2004-01-30 00:17:01 +00:00
80eccb4e3c Trying to decide what to do about real odd FFTs 2004-01-29 03:26:48 +00:00