GMP Native Interface for .NET
mpz_t_mp_alloc Property |
The number of limbs currently allocated at mp_base._mp_d.
Namespace: Math.Gmp.Native
Assembly: Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public int _mp_alloc { get; }
Public ReadOnly Property _mp_alloc As Integer Get
public: property int _mp_alloc { int get (); }
member _mp_alloc : int with get
Property Value
Type: Int32Remarks
mpz_t._mp_alloc is the number of limbs currently allocated at mp_base._mp_d, and naturally mpz_t._mp_alloc >= ABS(mpz_t._mp_size). When an mpz routine is about to (or might be about to) increase mpz_t._mp_size, it checks mpz_t._mp_alloc to see whether there’s enough space, and reallocates if not.
See Also