Skip to content

Commit

Permalink
implement cm flag
Browse files Browse the repository at this point in the history
  • Loading branch information
crop2000 committed Nov 29, 2024
1 parent b73dbc5 commit 486b04f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion compiler/generator/instructions_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,15 @@ void InstructionsCompiler::compileMultiSignal(Tree L)
string name;
if (gGlobal->gOutputLang == "rust") {
name = subst("*output$0", T(index));
pushComputeDSPMethod(IB::genStoreStackVar(name, res));
if (gGlobal->gComputeMix) {
// take the cpp code and remove the the loop
ValueInst* res1 = IB::genAdd(res, IB::genLoadStackVar(name));
pushComputeDSPMethod(IB::genStoreStackVar(name, res1));
} else {
pushComputeDSPMethod(IB::genStoreStackVar(name, res));
}


} else if (gGlobal->gOutputLang == "jax") {
res = CS(sig);
string result_var = "_result" + to_string(index);
Expand Down

0 comments on commit 486b04f

Please sign in to comment.