From c285135eb903c31cd221f90f03e288a6b67770cd Mon Sep 17 00:00:00 2001 From: Derick Huth Date: Thu, 24 Sep 2015 11:26:53 -0600 Subject: pre-v0.2.1 --- examples/chill/unroll.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 examples/chill/unroll.c (limited to 'examples/chill/unroll.c') diff --git a/examples/chill/unroll.c b/examples/chill/unroll.c deleted file mode 100644 index e74dea3..0000000 --- a/examples/chill/unroll.c +++ /dev/null @@ -1,33 +0,0 @@ - -#define N 14 -#define DT 0.314 - -void foo(int n, float* x, float* y, float* z, float* f3, float* f1, float* w) { - - int i, j; - - for (i = 1; i <= 14; i++) - x[i] = 1.0; - - for (i = 1; i <= 14; i += 3) - y[i] = 1.0; - - for (i = N + 1; i <= N + 20; i += 3) - z[i] = 1.0; - - 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; - } - - return 0; -} - -int main() { - float x[N], y[N], z[N], f3[N], f1[N], w[N]; - - foo(N, x, y, z, f3, f1, w); - return 0; -} - -- cgit v1.2.3-70-g09d2