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