bridge/class-master/depend/pari/src/basemath/FpE.c
/* Return the lift of a (mod b), which is closest to c */
Return the lift of a (mod b), which is closest to c
Return the lift of a ( mod b ) which is closest to c
static GEN
closest_lift(GEN a, GEN b, GEN c)
{
  return addii(a, mulii(b, diviiround(subii(c,a), b)));
}
static GEN closest_lift ( GEN a , GEN b , GEN c ) { return addii ( a , mulii ( b , diviiround ( subii ( c , a ) , b ) ) ) ; }
Return the lift of a (mod b), which is closest to c
Return the lift of a ( mod b ) which is closest to c