Skip to content

Commit

Permalink
make sure bang~ is always sent, so set in before any returns
Browse files Browse the repository at this point in the history
  • Loading branch information
dromer committed Nov 30, 2023
1 parent 2e6da70 commit 36fe158
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hvcc/generators/ir2c/templates/Heavy_NAME.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ int Heavy_{{name}}::process(float **inputBuffers, float **outputBuffers, int n)
hLp_consume(&inQueue);
}

sendBangToReceiver(0xDD21C0EB); // send to __hv_bang~ on next cycle

{%- if signal.numInputBuffers > 0 or signal.numOutputBuffers > 0 %}
const int n4 = n & ~HV_N_SIMD_MASK; // ensure that the block size is a multiple of HV_N_SIMD

Expand Down Expand Up @@ -247,7 +249,6 @@ int Heavy_{{name}}::process(float **inputBuffers, float **outputBuffers, int n)
return n;
{%- endif %}

sendBangToReceiver(0xDD21C0EB); // send to __hv_bang~
}

int Heavy_{{name}}::processInline(float *inputBuffers, float *outputBuffers, int n4) {
Expand Down

0 comments on commit 36fe158

Please sign in to comment.