add_ui_gmp#

Add an unsigned integer to $x in place.

Synopsis#

my $x = Math::GMP->new(1_000_000);
$x->add_ui_gmp(7);
print $x;                 # 1000007

Mutates $x and returns nothing. The second argument must be a non-negative plain Perl integer. Useful in tight counting loops where allocating a new Math::GMP per += would dominate the cost.