home *** CD-ROM | disk | FTP | other *** search
- head 1.1;
- access;
- symbols
- version39-41:1.1;
- locks;
- comment @ * @;
-
-
- 1.1
- date 92.06.08.19.47.59; author mwild; state Exp;
- branches;
- next ;
-
-
- desc
- @initial checkin
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @#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;
- }
- @
-