[PPL-devel] mpz_addmul_ui with ui = 1

Vincent Lefevre vincent at vinc17.org
Tue Feb 3 01:08:09 CET 2009


On 2009-02-02 22:30:03 +0100, Roberto Bagnara wrote:
> #if 1 // CHECKME: the test seems to speed up the GMP computation.
>       const Coefficient& y_i = y[i];
>       if (y_i != 0)
> 	sub_mul_assign(x_i, y_i, normalized_x_k);
> #else
>       sub_mul_assign(x_i, y[i], normalized_x_k);
> #endif // 1

Couldn't this be due to C++ overhead? Have you tried in C?

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list