bridge/class-master/depend/pari/src/kernel/gmp/mp.c
/* assume y != 0 and the division is exact */
assume y != 0 and the division is exact
assume y ! = 0 and the division is exact
static GEN
diviuexact_i(GEN x, ulong y)
{
  long l = lgefint(x);
  GEN z = cgeti(l);
  mpz_t X, Z;
  GEN2mpz(X, x);
  Z->_mp_alloc = l-2;
  Z->_mp_size  = l-2;
  Z->_mp_d = LIMBS(z);
  mpz_divexact_ui(Z, X, y);
  mpz2GEN(z, Z); return z;
}
static GEN diviuexact_i ( GEN x , ulong y ) { long l = lgefint ( x ) ; GEN z = cgeti ( l ) ; mpz_t X , Z ; GEN2mpz ( X , x ) ; Z -> _mp_alloc = l - 2 ; Z -> _mp_size = l - 2 ; Z -> _mp_d = LIMBS ( z ) ; mpz_divexact_ui ( Z , X , y ) ; mpz2GEN ( z , Z ) ; return z ; }
assume y != 0 and the division is exact
assume y ! = 0 and the division is exact