Click or drag to resize
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; }

Property Value

Type: Int32
Remarks

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