Set up aggressive optimizations when using simde or MOD
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
7974430c4e
commit
d0a354a411
11 changed files with 54 additions and 8 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue