bridge/class-master/depend/pari/src/modules/mpqs.c
/* main handle destructor, also cleans up all other allocated pieces
 * (except for stuff created on the PARI stack which the caller should
 * deal with by resetting avma) */
main handle destructor, also cleans up all other allocated pieces
(except for stuff created on the PARI stack which the caller should
deal with by resetting avma)
main handle destructor also cleans up all other allocated pieces ( except for stuff created on the PARI stack which the caller should deal with by resetting avma )
static void
mpqs_handle_dtor(mpqs_handle_t *h)
{
#define myfree(x) if(x) pari_free((void*)x)
  myfree((h->per_A_pr));
  myfree((h->relaprimes));
  myfree(h->relations);
#ifdef MPQS_USE_HISTOGRAMS
  myfree((h->histo_drop));
  myfree((h->histo_lprl));
  myfree((h->histo_full));
#endif
  myfree((h->candidates));
  myfree((h->sieve_array));
  myfree((h->invAH_chunk));
  myfree((h->FB_chunk));
  myfree(h);
}
static void mpqs_handle_dtor ( mpqs_handle_t * h ) { #define myfree ( x )  if(x) pari_free((void*)x) myfree ( ( h -> per_A_pr ) ) ; myfree ( ( h -> relaprimes ) ) ; myfree ( h -> relations ) ; #ifdef MPQS_USE_HISTOGRAMS myfree ( ( h -> histo_drop ) ) ; myfree ( ( h -> histo_lprl ) ) ; myfree ( ( h -> histo_full ) ) ; #endif myfree ( ( h -> candidates ) ) ; myfree ( ( h -> sieve_array ) ) ; myfree ( ( h -> invAH_chunk ) ) ; myfree ( ( h -> FB_chunk ) ) ; myfree ( h ) ; }
main handle destructor, also cleans up all other allocated pieces
 (except for stuff created on the PARI stack which the caller should
 deal with by resetting avma)
main handle destructor also cleans up all other allocated pieces ( except for stuff created on the PARI stack which the caller should deal with by resetting avma )