/****************************************************************************** * FILE: loop11.c * DESCRIPTION: * Demonstrates loop unrolling ******************************************************************************/ #include #include #include #define SEED 1995 #define DIM1 400 #define DIM2 400 float a[DIM1][DIM2], aa[DIM1][DIM2]; float b[DIM1][DIM2], bb[DIM1][DIM2]; float c[DIM1][DIM2], cc[DIM1][DIM2]; struct timeval start_time, end_time; main() { int i, j, k; initialize_data(); /*****************************************************************************/ /* Untuned Loop */ /*****************************************************************************/ gettimeofday(&start_time, (struct timeval*)0); for(i=0;i