Click or drag to resize
gmp_libmpn_zero Method
Zero {rp, n}.

Namespace:  Math.Gmp.Native
Assembly:  Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void mpn_zero(
	mp_ptr rp,
	mp_size_t n
)

Parameters

rp
Type: Math.Gmp.Nativemp_ptr
The result integer.
n
Type: Math.Gmp.Nativemp_size_t
The number of limbs of rp.
Examples
// 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);
See Also