version 1.1.1.2, 2000/09/09 14:12:47 |
version 1.1.1.3, 2003/08/25 16:06:32 |
|
|
/* mpz_cdiv_qr -- Division rounding the quotient towards +infinity. The |
/* mpz_cdiv_qr -- Division rounding the quotient towards +infinity. The |
remainder gets the opposite sign as the denominator. |
remainder gets the opposite sign as the denominator. |
|
|
Copyright (C) 1994, 1995, 1996, 2000 Free Software Foundation, Inc. |
Copyright 1994, 1995, 1996, 2000, 2001 Free Software Foundation, Inc. |
|
|
This file is part of the GNU MP Library. |
This file is part of the GNU MP Library. |
|
|
Line 24 MA 02111-1307, USA. */ |
|
Line 24 MA 02111-1307, USA. */ |
|
#include "gmp-impl.h" |
#include "gmp-impl.h" |
|
|
void |
void |
#if __STDC__ |
|
mpz_cdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) |
mpz_cdiv_qr (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) |
#else |
|
mpz_cdiv_qr (quot, rem, dividend, divisor) |
|
mpz_ptr quot; |
|
mpz_ptr rem; |
|
mpz_srcptr dividend; |
|
mpz_srcptr divisor; |
|
#endif |
|
{ |
{ |
mp_size_t divisor_size = divisor->_mp_size; |
mp_size_t divisor_size = divisor->_mp_size; |
mp_size_t xsize; |
mp_size_t xsize; |