mandelbrot fractal
Marc Glisse
marc.glisse at inria.fr
Tue Sep 8 11:04:11 UTC 2015
On Mon, 7 Sep 2015, folkert wrote:
> Now what I'm curious about: can this piece of code be improved in some
> way? From a GMP-lib usage point of view I mean.
I didn't read the code, just a couple comments from the first few lines:
You can use mpf_set_default_prec instead of setting the precision of each
variable to the same value.
I am not sure why you are including gmpxx.h (instead of gmp.h) if you
don't use any of the mp*_class types.
mpf_t already acts as a pointer type, you shouldn't need to pass a mpf_t*
to act on the argument.
--
Marc Glisse
More information about the gmp-discuss
mailing list