From 8853519d896f11b678873f0afacac16b3cdebc27 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 1 Apr 2020 23:17:46 -0700 Subject: Generate the bsinc tables using constexpr methods All the methods used should be compliant with C++14 constexpr rules. However, the number of scales and phases cause GenerateBSincCoeffs to reach the allowed step limit, preventing full compile-time generation. It's not a terribly big deal, it'll generate them very quickly when loading, but it does prevent using shared read-only memory pages. --- alc/mixer/mixer_c.cpp | 2 +- alc/mixer/mixer_neon.cpp | 1 + alc/mixer/mixer_sse.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'alc/mixer') diff --git a/alc/mixer/mixer_c.cpp b/alc/mixer/mixer_c.cpp index c086dd8d..6b68d821 100644 --- a/alc/mixer/mixer_c.cpp +++ b/alc/mixer/mixer_c.cpp @@ -6,7 +6,7 @@ #include "alcmain.h" #include "alu.h" - +#include "bsinc_defs.h" #include "defs.h" #include "hrtfbase.h" diff --git a/alc/mixer/mixer_neon.cpp b/alc/mixer/mixer_neon.cpp index afc9768a..2cdf21c3 100644 --- a/alc/mixer/mixer_neon.cpp +++ b/alc/mixer/mixer_neon.cpp @@ -10,6 +10,7 @@ #include "alu.h" #include "hrtf.h" #include "defs.h" +#include "bsinc_defs.h" #include "hrtfbase.h" diff --git a/alc/mixer/mixer_sse.cpp b/alc/mixer/mixer_sse.cpp index 3bc7b30f..32345522 100644 --- a/alc/mixer/mixer_sse.cpp +++ b/alc/mixer/mixer_sse.cpp @@ -9,6 +9,7 @@ #include "alcmain.h" #include "alu.h" +#include "bsinc_defs.h" #include "defs.h" #include "hrtfbase.h" -- cgit v1.2.3