version 1.1.1.2, 2000/09/09 14:13:17 |
version 1.1.1.3, 2003/08/25 16:06:37 |
|
|
/* sdiv -- Divide a MINT by a short integer. Produce a MINT quotient |
/* sdiv -- Divide a MINT by a short integer. Produce a MINT quotient |
and a short remainder. |
and a short remainder. |
|
|
Copyright (C) 1991, 1994, 1995, 2000 Free Software Foundation, Inc. |
Copyright 1991, 1994, 1995, 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 26 MA 02111-1307, USA. */ |
|
Line 26 MA 02111-1307, USA. */ |
|
#include "longlong.h" |
#include "longlong.h" |
|
|
void |
void |
#if __STDC__ |
|
sdiv (const MINT *dividend, signed short int divisor_short, MINT *quot, short *rem_ptr) |
sdiv (const MINT *dividend, signed short int divisor_short, MINT *quot, short *rem_ptr) |
#else |
|
sdiv (dividend, divisor_short, quot, rem_ptr) |
|
const MINT *dividend; |
|
short int divisor_short; |
|
MINT *quot; |
|
short *rem_ptr; |
|
#endif |
|
{ |
{ |
mp_size_t sign_dividend; |
mp_size_t sign_dividend; |
signed long int sign_divisor; |
signed long int sign_divisor; |