bridge/class-master/depend/pari/src/basemath/buch1.c
/* ensure that S->primes can hold at least nb primes */
ensure that S->primes can hold at least nb primes
ensure that S - > primes can hold at least nb primes
void
GRH_ensure(GRHcheck_t *S, long nb)
{
  if (S->maxprimes <= nb)
  {
    do S->maxprimes *= 2; while (S->maxprimes <= nb);
    S->primes = (GRHprime_t*)pari_realloc((void*)S->primes,
                                          S->maxprimes*sizeof(*S->primes));
  }
}
void GRH_ensure ( GRHcheck_t * S , long nb ) { if ( S -> maxprimes <= nb ) { do S -> maxprimes *= 2 ; while ( S -> maxprimes <= nb ) ; S -> primes = ( GRHprime_t * ) pari_realloc ( ( void * ) S -> primes , S -> maxprimes * sizeof ( * S -> primes ) ) ; } }
ensure that S->primes can hold at least nb primes
ensure that S - > primes can hold at least nb primes