/* The Computer Language Shootout http://shootout.alioth.debian.org/ contributed by Greg Buchholz for the debian (AMD) machine... compile flags: -O3 -ffast-math -march=athlon-xp -funroll-loops for the gp4 (Intel) machine... compile flags: -O3 -ffast-math -march=pentium4 -funroll-loops */ #include #include int main (int argc, char **argv) { int w, h, bit_num = 0; char byte_acc = 0; int i, iter = 50; double x, y, limit = 2.0; double Zr, Zi, Cr, Ci, Tr, Ti; if (argc < 2) { w = h = 3000; } else { w = h = atoi(argv[1]); } printf("P4\n%d %d\n",w,h); for(y=0;y