Skip to content

Commit

Permalink
fix #188 - make non-simd logic the same as simd implementations, whic…
Browse files Browse the repository at this point in the history
…h fixes the bug
  • Loading branch information
dromer committed Feb 26, 2025
1 parent 465f935 commit d51c2df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGELOG
=====

Next Release
-----

Bugfixes:

* sending `[stop(` to `[line~]` when it's not running no longer jumps the current value (#188)

0.13.3
-----

Expand Down
5 changes: 3 additions & 2 deletions hvcc/generators/ir2c/static/HvSignalLine.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ void sLine_onMessage(HeavyContextInterface *_c, SignalLine *o, int letIn,
o->m = vdupq_n_f32(0.0f);
o->t = vdupq_n_f32(x);
#else // HV_SIMD_NONE
float x = (o->n > 0) ? (o->x + o->m) : o->t;
o->n = 0;
o->x += o->m;
o->x = x;
o->m = 0.0f;
o->t = o->x;
o->t = x;
#endif
}
}

0 comments on commit d51c2df

Please sign in to comment.