diff options
author | David Robillard <d@drobilla.net> | 2012-05-22 23:25:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-22 23:25:45 +0000 |
commit | 9529f203c09d6dc8f4c2f12c3add9ec906f4bdba (patch) | |
tree | f990dfd5dfac756e1267f63cc11bdf595dd0afd2 /src/interpolator.c | |
parent | 5f6a3c53cb6fa129b9d869a70bfa3b44b24de7a6 (diff) | |
download | blop.lv2-9529f203c09d6dc8f4c2f12c3add9ec906f4bdba.tar.gz blop.lv2-9529f203c09d6dc8f4c2f12c3add9ec906f4bdba.tar.bz2 blop.lv2-9529f203c09d6dc8f4c2f12c3add9ec906f4bdba.zip |
Remove some silly temporary variables and unnecessary stores.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blip.lv2@4440 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/interpolator.c')
-rw-r--r-- | src/interpolator.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interpolator.c b/src/interpolator.c index 67d7114..52a6c37 100644 --- a/src/interpolator.c +++ b/src/interpolator.c @@ -108,11 +108,10 @@ runInterpolator(LV2_Handle instance, float p1 = plugin->p1; float p0 = plugin->p0; - float interval; - float inv_scount = 1.0f / (float)sample_count; + const float inv_scount = 1.0f / (float)sample_count; for (uint32_t s = 0; s < sample_count; ++s) { - interval = (float)s * inv_scount; + const float interval = (float)s * inv_scount; output[s] = interpolate(interval, p1, p0, input); } |