home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ISO Collection
/
AmigaUtilCD2.iso
/
Programming
/
GCC
/
GERLIB_DEV08B.LHA
/
gerlib
/
gnulib
/
normal
/
modsi3.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1993-12-12
|
203 b
|
17 lines
#include "common.h"
SItype
__modsi3 (a, b)
SItype a, b;
{
unsigned SItype q, r;
int neg = (a < 0);
if (a < 0) a = -a;
if (b < 0) b = -b;
divmodu (q, r, a, b);
return neg ? -r : r;
}