bridge/class-master/depend/pari/src/basemath/FpX_factor.c
/*Assume that p is large and odd*/
Assume that p is large and odd
Assume that p is large and odd
static GEN
FpX_factor_i(GEN f, GEN pp, long flag)
{
  long d = degpol(f);
  if (d <= 2) return FpX_factor_deg2(f,pp,d,flag);
  switch(flag)
  {
    default: return FpX_factor_Cantor(f, pp);
    case 1: return FpX_simplefact_Cantor(f, pp);
    case 2: return FpX_isirred_Cantor(f, pp)? gen_1: NULL;
  }
}
static GEN FpX_factor_i ( GEN f , GEN pp , long flag ) { long d = degpol ( f ) ; if ( d <= 2 ) return FpX_factor_deg2 ( f , pp , d , flag ) ; switch ( flag ) { default : return FpX_factor_Cantor ( f , pp ) ; case 1 : return FpX_simplefact_Cantor ( f , pp ) ; case 2 : return FpX_isirred_Cantor ( f , pp ) ? gen_1 : NULL ; } }
Assume that p is large and odd
Assume that p is large and odd