summaryrefslogtreecommitdiffstats
path: root/lib/ffts/src/ffts_trig.h
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2024-08-24 13:04:45 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2024-08-24 13:51:05 -0500
commit2ef6dba8728db2437def9a4fc1d3e20e0aa44c31 (patch)
tree5211805789c78639d6b96a89bd0a4a96078d0fd9 /lib/ffts/src/ffts_trig.h
parentc40a208abbc778da4271485eba06a89d05c69b5e (diff)
downloadulab-2ef6dba8728db2437def9a4fc1d3e20e0aa44c31.tar.gz
ulab-2ef6dba8728db2437def9a4fc1d3e20e0aa44c31.zip
Revup FFTS to latest upstream version
Taken from https://github.com/linkotec/ffts Fixes ppc64el support and a handful of other bugs
Diffstat (limited to 'lib/ffts/src/ffts_trig.h')
-rw-r--r--lib/ffts/src/ffts_trig.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/ffts/src/ffts_trig.h b/lib/ffts/src/ffts_trig.h
index 0b22738..f988340 100644
--- a/lib/ffts/src/ffts_trig.h
+++ b/lib/ffts/src/ffts_trig.h
@@ -2,7 +2,7 @@
This file is part of FFTS -- The Fastest Fourier Transform in the South
-Copyright (c) 2015, Jukka Ojanen <jukka.ojanen@kolumbus.fi>
+Copyright (c) 2015-2016, Jukka Ojanen <jukka.ojanen@kolumbus.fi>
All rights reserved.
@@ -39,8 +39,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "ffts_internal.h"
+/* calculate cos(pi * n / d) and sin(pi * n / d) with maximum error less than 1 ULP, average ~0.5 ULP */
int
-ffts_generate_cosine_sine_32f(ffts_cpx_32f *const table, int table_size);
+ffts_cexp_32f(size_t n, size_t d, float *output);
+
+int
+ffts_generate_chirp_32f(ffts_cpx_32f *const table, size_t table_size);
+
+/* generate cosine and sine tables with maximum error less than 1 ULP, average ~0.5 ULP */
+int
+ffts_generate_cosine_sine_32f(ffts_cpx_32f *const table, size_t table_size);
int
ffts_generate_cosine_sine_pow2_32f(ffts_cpx_32f *const table, int table_size);