is gcd missing from gmpxx.h?

Marc Glisse marc.glisse at inria.fr
Tue Mar 28 23:37:47 UTC 2017


On Tue, 28 Mar 2017, logical american wrote:

> Is the C++ gcd function missing from the gmpxx.h include file and the 
> libgmpxx.a library?
>
> I bumped into this problem and a search in the /usr area showed that only the 
> gmp.h file has mpz_gcd() function.
>
> Was this overlooked?

2014-06-17  Marc Glisse  <marc.glisse at inria.fr>

         * gmpxx.h (__gmp_gcd_function, __gmp_lcm_function): New classes.
         (gcd, lcm): New functions.
         * doc/gmp.texi (C++ Interface Integers): Document them.
         * tests/cxx/t-ops2.cc (checkz): Test them.

You seem to have an old version of GMP.

-- 
Marc Glisse


More information about the gmp-discuss mailing list