16a17,19 > > To compile: > g++ -pipe -O3 -s -fomit-frame-pointer -funroll-loops fv.cpp -o fv 33c36,37 < const int HSIZE=0x8000000; --- > //const int HSIZE=0x8000000; > const int HSIZE=0x2000000; // reduced memory for a 256 MB PC 156,157c160,167 < fprintf(stderr, "Drawing fv.bmp %d by %d from %s (%1.0f bytes)\n", < width, height, argv[1], size); --- > > char suffix[] = "_fv.bmp"; > char* outfile_name = (char*) malloc(strlen(argv[1]) + strlen(suffix) + 1); > strcpy(outfile_name, argv[1]); > strcat(outfile_name, suffix); > > fprintf(stderr, "Drawing %s %d by %d from %s (%1.0f bytes)\n", > outfile_name, width, height, argv[1], size); 212,213c222,226 < g.saveBMP("fv.bmp"); < fprintf(stderr, "Created fv.bmp in %1.2f seconds\n", --- > //g.saveBMP("fv.bmp"); > g.saveBMP(outfile_name); > > fprintf(stderr, "Created %s in %1.2f seconds\n", > outfile_name, 224d236 <