summaryrefslogtreecommitdiffstats
path: root/data/accumulator.c
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-07-01 01:40:30 +0100
committerYann Herklotz <git@yannherklotz.com>2020-07-01 01:40:30 +0100
commit6bde0bb72a4f54431bcfea743f69edada4c513c1 (patch)
tree2a71c87dd7013a71177b677dafb6d824ba4043a1 /data/accumulator.c
parentf76f76c44520e1fc0d15456b8c5eb929f8495b5b (diff)
downloadoopsla21_fvhls-6bde0bb72a4f54431bcfea743f69edada4c513c1.tar.gz
oopsla21_fvhls-6bde0bb72a4f54431bcfea743f69edada4c513c1.zip
Fix to comments
Diffstat (limited to 'data/accumulator.c')
-rw-r--r--data/accumulator.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/accumulator.c b/data/accumulator.c
new file mode 100644
index 0000000..7d78a61
--- /dev/null
+++ b/data/accumulator.c
@@ -0,0 +1,7 @@
+int main() {
+ int x[3] = {1, 2, 3};
+ int sum = 0, incr = 1;
+ for (int i = 0; i < 3; i=i+incr)
+ sum += x[i];
+ return sum;
+}