Browse Source

moving debug

master
tth 3 years ago
parent
commit
bacf6ecd94
  1. 7
      essai.c

7
essai.c

@ -50,7 +50,11 @@ if (verbosity) fimg_print_version(0); @@ -50,7 +50,11 @@ if (verbosity) fimg_print_version(0);
fimg_create(&fimgA, W, H, 3);
fimg_create(&fimgB, W, H, 3);
fimg_clear(&fimgA);
fimg_drand48(&fimgB, 100.0);
foo = fimg_dump_to_file(&fimgB, "B.fimg", 0);
fimg_timer_set(0);
#define NBP 500
for (foo=0; foo<NBP; foo++) {
@ -59,11 +63,12 @@ for (foo=0; foo<NBP; foo++) { @@ -59,11 +63,12 @@ for (foo=0; foo<NBP; foo++) {
}
fait_un_dessin(&fimgB);
fimg_add(&fimgA, &fimgB, &fimgA);
fimg_mul(&fimgA, &fimgB, &fimgA);
// fimg_mul(&fimgA, &fimgB, &fimgA);
}
tb = fimg_timer_get(0);
fprintf(stderr, "%s = %f seconds\n", __func__, tb);
foo = fimg_save_as_pnm(&fimgA, "drand48.pnm", 0);
foo = fimg_dump_to_file(&fimgA, "drand48.fimg", 0);
fimg_destroy(&fimgA);
fimg_destroy(&fimgB);

Loading…
Cancel
Save