Davide Faconti and Claude Opus 5.5
c2f367e286
kiss_fftnd, kiss_fftndr: align every object packed into the state block
...
kiss_fftnd_alloc and kiss_fftndr_alloc carve several objects out of one
allocation, advancing by KISS_FFT_ALIGN_SIZE_UP(size), which is the
identity outside SIMD builds. So objects started at whatever offset the
previous one ended:
- kiss_fftnd: after an odd number of int dims, tmpbuf and the
per-dimension kiss_fft_state objects were 4 bytes off, misaligned for
double.
- kiss_fftndr: the nd state (which holds pointers) followed the real-FFT
state, whose size is only a multiple of 4 for int16_t.
These are misaligned accesses (undefined behavior; SIGBUS on strict
platforms, silent on x86). Add KISS_FFT_PACK_SIZE_UP to
_kiss_fft_guts.h, which rounds a size up to a multiple of the size of a
union of pointer, int and kiss_fft_cpx (a multiple of each of their
alignments, and of the SIMD vector alignment), and use it for every
object in both layouts. The reported sizes grow by a few bytes of padding.
Co-Authored-By: Claude Opus 5.5 <[email protected] >
Claude-Session: https://claude.ai/code/session_01ME1hnNaoD3ZcMj9H8TSYkZ
2026-11-15 20:03:51 +01:00
yuanhecai
eeb2e98ff6
loongarch: add lasx simd opt
2025-09-01 18:07:43 +08:00
yuanhecai
c94458d8f2
loongarch: add lsx simd opt
2025-09-01 18:07:39 +08:00
Julien and GitHub
efff86ac1c
Fix conversion from 'double' to 'float' warning closes
...
Closes #27
2020-06-09 13:57:41 +02: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
33d9ad3bad
include guard for kiss guts - fixes compile on unity build systems
2020-04-18 20:42:30 -04:00
Jason Heeris
d1f9113c51
Include stdint.h only where fixed point types are used. Use min/max values from stdint.h.
2019-04-05 19:27:40 +11:00
jmcph4
bd550240fa
Include stdint.h in _kiss_fft_guts.h
...
This commit adds an `#include` directive for the standard integer
header (`stdint.h`).
2019-03-24 10:44:06 +10:00
h.udo
bc40eccbea
[BSD-3-Clause] Convert to SPDX license format
2018-07-19 14:49:00 +01:00
Mark Borgerding
044352a916
updated copyright dates
2010-05-27 23:01:08 -04:00
Mark Borgerding
57925fd126
made threadsafe
2010-05-27 22:54:01 -04:00
Mark Borgerding
18d0ad1604
*** empty log message ***
2005-10-07 12:29:36 +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
ed1a5f0cfc
made easy to use longs for fixed point
2005-05-11 02:36:33 +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
75ca67f928
updated copyright years
2004-04-04 21:44:34 +00:00
Mark Borgerding
1bbb274965
split out tmpbuf and scratchbuf, since they are only used in certain cases
2004-04-03 02:59:20 +00:00
Mark Borgerding
dd689e1661
now works on platforms where int is 16 bits. e.g. Renesas M16c
2004-04-03 00:25:37 +00:00
Mark Borgerding
e3fe1598f0
bunch of minor code cleanup
2004-02-27 03:45:12 +00:00
Mark Borgerding
dda6f9638e
replaced void pointers with pointers to forward declared structs
2004-02-24 01:29:25 +00:00
Mark Borgerding
b1dad2147b
made some things const -- doesn't really have an effect under gcc, but it might under some compilers
...
added asm target to check to see if the assembly code changes
2004-02-08 17:10:02 +00:00
Mark Borgerding
9b738dc492
slight fast fir changes
2004-01-30 00:17:01 +00:00
Mark Borgerding
4552a14801
added stride to fft input -- should simplify multi-dimensional FFTs
2003-12-29 18:50:13 +00:00
Mark Borgerding
6b23ebb5c1
getting ready for v100
2003-12-15 03:23:46 +00:00
Mark Borgerding
573536f48f
fixed scaling for short real
...
moved fft.py from ./ to sample_code
2003-12-14 05:13:11 +00:00
Mark Borgerding
559c14b49b
changed alloc functions to allow for initialization of user-supplied buffer
2003-12-14 03:02:30 +00:00
Mark Borgerding
72de907478
minor doc changes
2003-12-05 00:35:25 +00:00
Mark Borgerding
f3c4a9e9ca
internal checkpoint
...
split kiss_fft.c into multiple files. It seems the best approach, all things considered.
2003-12-04 02:38:50 +00:00