bridge/class-master/depend/pari/src/basemath/arith1.c
/* modified Barrett reduction with one fold */
/* See Fast Modular Reduction, W. Hasenplaugh, G. Gaubatz, V. Gopal, ARITH 18 */
modified Barrett reduction with one fold
See Fast Modular Reduction, W. Hasenplaugh, G. Gaubatz, V. Gopal, ARITH 18
modified Barrett reduction with one fold See Fast Modular Reduction W . Hasenplaugh G . Gaubatz V . Gopal ARITH 18
static GEN
Fp_invmBarrett(GEN p, long s)
{
  GEN R, Q = dvmdii(int2n(3*s),p,&R);
  return mkvec2(Q,R);
}
static GEN Fp_invmBarrett ( GEN p , long s ) { GEN R , Q = dvmdii ( int2n ( 3 * s ) , p , & R ) ; return mkvec2 ( Q , R ) ; }
modified Barrett reduction with one fold
See Fast Modular Reduction, W. Hasenplaugh, G. Gaubatz, V. Gopal, ARITH 18
modified Barrett reduction with one fold See Fast Modular Reduction W . Hasenplaugh G . Gaubatz V . Gopal ARITH 18