Set up aggressive optimizations when using simde or MOD

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-12-31 18:01:22 +00:00
parent 7974430c4e
commit d0a354a411
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
11 changed files with 54 additions and 8 deletions

View file

@ -140,11 +140,9 @@ static void Cable_step(Cable* that) {
const int channels = output->channels;
// Copy all voltages from output to input
for (int c = 0; c < channels; c++) {
float v = output->voltages[c];
// Set 0V if infinite or NaN
if (!std::isfinite(v))
v = 0.f;
input->voltages[c] = v;
if (!std::isfinite(output->voltages[c]))
__builtin_unreachable();
input->voltages[c] = output->voltages[c];
}
// Set higher channel voltages to 0
for (int c = channels; c < input->channels; c++) {