bridge/class-master/depend/pari/src/modules/mpqs.c
/* histogram evaluation happens very infrequently if at all.  So we'll do
 * all the adding and putting-into-relation-with here, while mpqs_eval_cand()
 * merely bumps one cell at a time and doesn't keep running totals. */
histogram evaluation happens very infrequently if at all.  So we'll do
all the adding and putting-into-relation-with here, while mpqs_eval_cand()
merely bumps one cell at a time and doesn't keep running totals.
histogram evaluation happens very infrequently if at all . So we ' ll do all the adding and putting - into - relation - with here while mpqs_eval_cand () merely bumps one cell at a time and doesn ' t keep running totals .
static void
mpqs_print_histo(mpqs_handle_t *h)
{
  long i, tot = 0;
  if (!h->do_histograms) return;
  err_printf("\nMPQS: values from sieve vs. distribution of evaluated candidates:\n");
  err_printf("   val  ___full __lprel ___none ___total\n");
  for (i = 127; i >= 0; i--)
  {
    long rowtot = h->histo_full[i] + h->histo_lprl[i] + h->histo_drop[i];
    tot += rowtot;
    if ((rowtot > 0) || (i == h->sieve_threshold))
      err_printf("%s[%3d] %7ld %7ld %7ld %8ld\n",
                 i + 128 == h->sieve_threshold ? "^-" : "  ", i + 128,
                 h->histo_full[i], h->histo_lprl[i], h->histo_drop[i],
                 rowtot);
  }
  err_printf("        (total evaluated candidates: %ld)\n", tot);
}
static void mpqs_print_histo ( mpqs_handle_t * h ) { long i , tot = 0 ; if ( ! h -> do_histograms ) return ; err_printf ( " \n \n " ) ; err_printf ( " \n " ) ; for ( i = 127 ; i >= 0 ; i -- ) { long rowtot = h -> histo_full [ i ] + h -> histo_lprl [ i ] + h -> histo_drop [ i ] ; tot += rowtot ; if ( ( rowtot > 0 ) || ( i == h -> sieve_threshold ) ) err_printf ( " \n " , i + 128 == h -> sieve_threshold ? " " : " " , i + 128 , h -> histo_full [ i ] , h -> histo_lprl [ i ] , h -> histo_drop [ i ] , rowtot ) ; } err_printf ( " \n " , tot ) ; }
histogram evaluation happens very infrequently if at all.
histogram evaluation happens very infrequently if at all .