13 const int x1 =
DIM_X/2;
14 const int y1 =
DIM_Y/2;
16 #pragma omp parallel for reduction(+:visible) 17 for (
int y_pixel=0; y_pixel<
DIM_Y; y_pixel++) {
18 for (
int x_pixel=0; x_pixel<
DIM_X; x_pixel++) {
23 int sx, sy, err, dx, dy, e2;
44 if ((x0==x1) && (y0==y1)) {
67 output[y_pixel][x_pixel] = 1;
79 printf (
"Sum: %d\n", sum);
81 printf(
"RESULT: PASS\n");
83 printf(
"RESULT: FAIL\n");
volatile int obstacles[DIM_Y][DIM_X]
volatile int output[DIM_Y][DIM_X]