From aa3bae40fb4a6c37af94075ed8958fd48597f48a Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Wed, 2 Oct 2024 20:18:38 +0200 Subject: [PATCH] fix: don't use fastmath FAUST fastmath implementation causes error with GCC >= 14.2.1: fastmath.cpp:212:33: error: initializer element is not constant Signed-off-by: Christopher Arndt --- examples/lpf.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/lpf.h b/examples/lpf.h index f14f608..dacfba6 100644 --- a/examples/lpf.h +++ b/examples/lpf.h @@ -5,7 +5,7 @@ license: "MIT" name: "FaustLPF" version: "0.1.0" Code generated with Faust 2.74.6 (https://faust.grame.fr) -Compilation options: -a ./examples/minarch.h -lang c -rui -ct 1 -fm def -cn faustlpf -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 0 -vec -lv 0 -vs 32 +Compilation options: -a ./examples/minarch.h -lang c -rui -ct 1 -cn faustlpf -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 0 -vec -lv 0 -vs 32 ------------------------------------------------------------ */ #ifndef __faustlpf_H__ @@ -41,7 +41,6 @@ extern "C" { #define RESTRICT __restrict__ #endif -#include "faust/dsp/fastmath.cpp" #include #include #include @@ -81,7 +80,7 @@ void deletefaustlpf(faustlpf* dsp) { void metadatafaustlpf(MetaGlue* m) { m->declare(m->metaInterface, "author", "Christopher Arndt"); - m->declare(m->metaInterface, "compile_options", "-a ./examples/minarch.h -lang c -rui -ct 1 -fm def -cn faustlpf -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 0 -vec -lv 0 -vs 32"); + m->declare(m->metaInterface, "compile_options", "-a ./examples/minarch.h -lang c -rui -ct 1 -cn faustlpf -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 0 -vec -lv 0 -vs 32"); m->declare(m->metaInterface, "copyright", "Christopher Arndt, 2024"); m->declare(m->metaInterface, "filename", "lpf.dsp"); m->declare(m->metaInterface, "filters.lib/fir:author", "Julius O. Smith III"); @@ -231,7 +230,7 @@ void computefaustlpf(faustlpf* dsp, int count, FAUSTFLOAT** RESTRICT inputs, FAU { int i; for (i = 0; i < vsize; i = i + 1) { - fZec0[i] = fast_tanf(dsp->fConst3 * fRec1[i]); + fZec0[i] = tanf(dsp->fConst3 * fRec1[i]); } } /* Vectorizable loop 2 */ @@ -323,7 +322,7 @@ void computefaustlpf(faustlpf* dsp, int count, FAUSTFLOAT** RESTRICT inputs, FAU { int i; for (i = 0; i < vsize; i = i + 1) { - fZec0[i] = fast_tanf(dsp->fConst3 * fRec1[i]); + fZec0[i] = tanf(dsp->fConst3 * fRec1[i]); } } /* Vectorizable loop 2 */