/* * * $Id: blur.c,v 1.6 2002-04-17 02:28:33 bdenney Exp $ * */ #include #include #include #include #define MAX 128 int array[MAX][MAX]; int array2[MAX][MAX]; #define BLUR_SIZE 3 #define BLUR_WINDOW_HALF 1 #define DEFAULT_TIMES 1000 void blur_simple() { int sum; int x,y,x2,y2; for (x=1; x1) { assert (sscanf (argv[1], "%d", ×) == 1); } else { times = DEFAULT_TIMES; } fill_array(); //dump_array (stderr); start_timer(); for (i=0; i