bridge/class-master/depend/pari/src/basemath/bibli2.c
/* Sort the vector x, using cmp to compare entries. */
Sort the vector x, using cmp to compare entries.
Sort the vector x using cmp to compare entries .
GEN
gen_sort(GEN x, void *E, int (*cmp)(void*,GEN,GEN))
{
  long tx, lx;
  GEN y;
  init_sort(&x, &tx, &lx);
  if (lx==1) return triv_sort(tx);
  y = gen_sortspec(x,lx-1,E,cmp);
  return sort_extract(x, y, tx, lx);
}
GEN gen_sort ( GEN x , void * E , int ( * cmp ) ( void * , GEN , GEN ) ) { long tx , lx ; GEN y ; init_sort ( & x , & tx , & lx ) ; if ( lx == 1 ) return triv_sort ( tx ) ; y = gen_sortspec ( x , lx - 1 , E , cmp ) ; return sort_extract ( x , y , tx , lx ) ; }
Sort the vector x, using cmp to compare entries.
Sort the vector x using cmp to compare entries .