Commit | Line | Data |
---|---|---|
80f575fc DM |
1 | #include <stdint.h> |
2 | #include <math.h> | |
3 | #include <stdlib.h> | |
4 | #include "orc_bug_orc.h" | |
5 | ||
6 | // cd ../ && orcc --implementation -o orc_bug_orc.c orc_bug_orc.orc && orcc --header -o orc_bug_orc.h orc_bug_orc.orc ; cd cmake | |
7 | ||
8 | int main(){ | |
9 | int x; | |
10 | int N = 512; | |
11 | ||
12 | // some random parameters | |
13 | int32_t zcos_a = 12345; | |
14 | int32_t zsin_a = 65432; | |
15 | int32_t c_tx = 250; | |
16 | int32_t c_ty = 6; | |
17 | int32_t c_d_x = 256; | |
18 | int32_t y_d1 = 100; | |
19 | ||
20 | int32_t* x_ss = (int32_t*)malloc(sizeof(int32_t)*N); | |
21 | int32_t* y_ss = (int32_t*)malloc(sizeof(int32_t)*N); | |
22 | int32_t* xs = (int32_t*)malloc(sizeof(int32_t)*N); | |
23 | for (x = 0; x < N; x++) { | |
24 | xs[x]=x; | |
25 | } | |
26 | ||
27 | test_orc (x_ss, y_ss, xs, | |
28 | y_d1, c_d_x, c_tx, c_ty, zcos_a, zsin_a, N); | |
29 | ||
30 | return 0; | |
31 | } |