gmp_libmpn_gcd_1 Method |
Namespace: Math.Gmp.Native
public static mp_limb_t mpn_gcd_1( mp_ptr xp, mp_size_t xn, mp_limb_t ylimb )
Public Shared Function mpn_gcd_1 ( xp As mp_ptr, xn As mp_size_t, ylimb As mp_limb_t ) As mp_limb_t
public: static mp_limb_t mpn_gcd_1( mp_ptr^ xp, mp_size_t xn, mp_limb_t ylimb )
static member mpn_gcd_1 : xp : mp_ptr * xn : mp_size_t * ylimb : mp_limb_t -> mp_limb_t
Both operands must be non-zero.
// Create multi-precision operand. mp_ptr xp = new mp_ptr(new uint[] { 0x00000000, 0x00000001 }); // Assert result of operation. Assert.IsTrue(gmp_lib.mpn_gcd_1(xp, xp.Size, 1073741824) == 1073741824); // Release unmanaged memory. gmp_lib.free(xp);
' Create multi-precision operand. Dim xp As New mp_ptr(New UInteger() { &H0, &H1}) ' Assert result of operation. Assert.IsTrue(gmp_lib.mpn_gcd_1(xp, xp.Size, 1073741824) = 1073741824) ' Release unmanaged memory. gmp_lib.free(xp)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.