Next: Assignment Functions
Up: mpffn class functions
Previous: Elements storage
void mpffn_field_clear(mpffn_field *ff)
Free the data structure
ff .
void mpffn_field_init(mpffn_field *ff, mp_ptr p, mp_size_t size_p,
mp_srcptr pol, mp_size_t size_pol,
mp_ptr (*ff_alloc)(mp_size_t l),
void (*ff_free)(mp_ptr r,mp_size_t l))
Initialize the data structure
ff to the finite field of characteristic
{p, size
} defined by the polynomial
{pol, size
}.
You can pass NULL for ff_alloc() and ff_free() to use the default memory
allocation functions. Else
- r=ff_alloc(l) must allocate a bloc r of l mp_limb_t.
- ff_free(r,l) must free a bloc r of l mp_limb_t previously
allocated by r=ff_alloc(l).
void mpffn_field_init_unpack(mpffn_field *ff, mp_ptr p, mp_size_t
size_p, mp_srcptr pol, mp_size_t packet_number, mp_size_t packet_size, mp_ptr
(*ff_alloc)(mp_size_t l), void (*ff_free)(mp_ptr r,mp_size_t l))
Initialize the data structure
ff to the finite field of characteristic
{p, size
} defined by the polynomial
{pol, packet
, packet
}.
You can pass NULL for ff_alloc() and ff_free() to use the default memory
allocation functions. Else
- r=ff_alloc(l) must allocate a bloc r of l mp_limb_t.
- ff_free(r,l) must free a bloc r of l mp_limb_t previously
allocated by r=ff_alloc(l).
Bill Allombert
2003-07-01