gmp_libmpn_copyd Method |
Namespace: Math.Gmp.Native
public static void mpn_copyd( mp_ptr rp, mp_ptr s1p, mp_size_t n )
Public Shared Sub mpn_copyd ( rp As mp_ptr, s1p As mp_ptr, n As mp_size_t )
public: static void mpn_copyd( mp_ptr^ rp, mp_ptr^ s1p, mp_size_t n )
static member mpn_copyd : rp : mp_ptr * s1p : mp_ptr * n : mp_size_t -> unit
// Create multi-precision operands, and expected result. mp_ptr sp = new mp_ptr(new uint[] { 0xf0f0f0f0, 0xf0f0f0f0 }); mp_ptr rp = new mp_ptr(new uint[2]); mp_ptr result = new mp_ptr(new uint[] { 0xf0f0f0f0, 0xf0f0f0f0 }); // Set rp = sp. gmp_lib.mpn_copyd(rp, sp, sp.Size); // Assert result of operation. Assert.IsTrue(rp.SequenceEqual(result)); // Release unmanaged memory. gmp_lib.free(rp, sp, result);
' Create multi-precision operands, and expected result. Dim sp As New mp_ptr(New UInteger() { &Hf0f0f0f0UI, &Hf0f0f0f0UI}) Dim rp As New mp_ptr(New UInteger(1) { }) Dim result As New mp_ptr(New UInteger() { &Hf0f0f0f0UI, &Hf0f0f0f0UI}) ' Set rp = sp. gmp_lib.mpn_copyd(rp, sp, sp.Size) ' Assert result of operation. Assert.IsTrue(rp.SequenceEqual(result)) ' Release unmanaged memory. gmp_lib.free(rp, sp, result)
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.