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
|
@ -182,6 +182,9 @@ struct HostAudio2 : HostAudio<2> {
|
|||
|
||||
if (in1connected)
|
||||
{
|
||||
if (!std::isfinite(dataOuts[0][k]))
|
||||
__builtin_unreachable();
|
||||
|
||||
valueL = inputs[0].getVoltageSum() * 0.1f;
|
||||
|
||||
if (dcFilterEnabled)
|
||||
|
@ -200,6 +203,9 @@ struct HostAudio2 : HostAudio<2> {
|
|||
|
||||
if (in2connected)
|
||||
{
|
||||
if (!std::isfinite(dataOuts[1][k]))
|
||||
__builtin_unreachable();
|
||||
|
||||
valueR = inputs[1].getVoltageSum() * 0.1f;
|
||||
|
||||
if (dcFilterEnabled)
|
||||
|
|
|
@ -146,14 +146,22 @@ struct HostCV : TerminalModule {
|
|||
inputOffset = params[BIPOLAR_INPUTS_1_5].getValue() > 0.1f ? 5.0f : 0.0f;
|
||||
|
||||
for (int i=0; i<5; ++i)
|
||||
{
|
||||
if (!std::isfinite(dataOuts[i+ioOffset][k]))
|
||||
__builtin_unreachable();
|
||||
dataOuts[i+ioOffset][k] += inputs[i].getVoltage() + inputOffset;
|
||||
}
|
||||
|
||||
if (pcontext->variant == kCardinalVariantMain)
|
||||
{
|
||||
inputOffset = params[BIPOLAR_INPUTS_6_10].getValue() > 0.1f ? 5.0f : 0.0f;
|
||||
|
||||
for (int i=5; i<10; ++i)
|
||||
{
|
||||
if (!std::isfinite(dataOuts[i+ioOffset][k]))
|
||||
__builtin_unreachable();
|
||||
dataOuts[i+ioOffset][k] += inputs[i].getVoltage() + inputOffset;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue