X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=tickmarks.c;h=88bace09dc945de34cbf3be94ef465cfa6a834af;hp=6a964e31a2a3715ebb11d6d93f1cf7b414fe927c;hb=53ee8c17adb00e3db4f2c9441777ba777390cb9f;hpb=d8fbeefb67641e9f63088b329de78a26a69fdbae diff --git a/tickmarks.c b/tickmarks.c index 6a964e31..88bace09 100644 --- a/tickmarks.c +++ b/tickmarks.c @@ -1,9 +1,9 @@ #include #include -#include +#include #include -/* +/* * adapted from Paul Heckbert's algorithm on p 657-659 of * Andrew S. Glassner's book, "Graphics Gems" * ISBN 0-12-286166-3 @@ -128,20 +128,20 @@ static void test_range(double x, double y) printf("Testing range %g - %g\n", x, y); nticks = calc_tickmarks(x, y, 10, &tm); - for (i = 0; i < nticks; i++) { + for (i = 0; i < nticks; i++) printf(" (%s) %g\n", tm[i].string, tm[i].value); - } + printf("\n\n"); free(tm); } int main(int argc, char *argv[]) { - test_range(0.0005, 0.008); - test_range(0.5, 0.8); - test_range(5.5, 8.8); - test_range(50.5, 80.8); - test_range(-20, 20.8); - test_range(-30, 700.8); + test_range(0.0005, 0.008); + test_range(0.5, 0.8); + test_range(5.5, 8.8); + test_range(50.5, 80.8); + test_range(-20, 20.8); + test_range(-30, 700.8); } #endif