The question is very simple and direct, but I could not find an answer on the documentation. If I have
mpfr_t a, b;
Can I do something like
mpfr_add(a, a, b, rnd);
This would compute the sum of a
and b
and store the result on a
. I don't know if this results in an aliasing problem, potentially invalidating the result, or if this is fine.
a = mpfr_add(a,b)
? – Birthdayint mpfr_add (mpfr_t rop, mpfr_t op1, mpfr_t op2, mpfr_rnd_t rnd)
– Cordy