```{index} single: add_ui_gmp; Math::GMP function ``` ```{index} single: Math::GMP::add_ui_gmp; Perl function ``` # add_ui_gmp Add an unsigned integer to `$x` in place. ## Synopsis ```perl 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.