summaryrefslogtreecommitdiff
path: root/examples/chill/unroll.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chill/unroll.c')
-rw-r--r--examples/chill/unroll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/chill/unroll.c b/examples/chill/unroll.c
index 68f4633..e74dea3 100644
--- a/examples/chill/unroll.c
+++ b/examples/chill/unroll.c
@@ -1,6 +1,8 @@
+
#define N 14
+#define DT 0.314
+
void foo(int n, float* x, float* y, float* z, float* f3, float* f1, float* w) {
- int dt;
int i, j;
@@ -16,7 +18,7 @@ void foo(int n, float* x, float* y, float* z, float* f3, float* f1, float* w) {
for (i = 0; i <= N; i++) {
for (j = i; j <= i + N; j++)
f3[i] = f3[i] + f1[j] * w[j - i];
- f3[i] = f3[i] * dt;
+ f3[i] = f3[i] * DT;
}
return 0;