[PPL-devel] mpz_addmul_ui with ui = 1
Gabriel Dos Reis
gdr at integrable-solutions.net
Tue Feb 3 01:37:08 CET 2009
On Mon, Feb 2, 2009 at 6:08 PM, Vincent Lefevre <vincent at vinc17.org> wrote:
> 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);
>> 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?
That would be surprising.
More information about the gmp-discuss