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/product.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/product.c')
-rw-r--r-- | src/product.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/product.c b/src/product.c index 3ac4470..0b892a1 100644 --- a/src/product.c +++ b/src/product.c @@ -82,14 +82,8 @@ runProduct_iaia_oa(LV2_Handle instance, /* Output (array of floats of length sample_count) */ float* output = plugin->output; - float in1; - float in2; - for (uint32_t s = 0; s < sample_count; ++s) { - in1 = input1[s]; - in2 = input2[s]; - - output[s] = in1 * in2; + output[s] = input1[s] * input2[s]; } } @@ -108,12 +102,8 @@ runProduct_iaic_oa(LV2_Handle instance, /* Output (array of floats of length sample_count) */ float* output = plugin->output; - float in1; - for (uint32_t s = 0; s < sample_count; ++s) { - in1 = input1[s]; - - output[s] = in1 * input2; + output[s] = input1[s] * input2; } } |