version 1.1.1.2, 2000/09/09 14:12:49 |
version 1.1.1.3, 2003/08/25 16:06:32 |
|
|
/* mpz_cdiv_r -- Division rounding the quotient towards +infinity. The |
/* mpz_cdiv_r -- 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 Free Software Foundation, Inc. |
Copyright 1994, 1995, 1996, 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_r (mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) |
mpz_cdiv_r (mpz_ptr rem, mpz_srcptr dividend, mpz_srcptr divisor) |
#else |
|
mpz_cdiv_r (rem, dividend, divisor) |
|
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; |
mpz_t temp_divisor; /* N.B.: lives until function returns! */ |
mpz_t temp_divisor; /* N.B.: lives until function returns! */ |