Adding debian version 3.70~pre8+dfsg-1.
[syslinux-debian/hramrach.git] / gpxe / src / libgcc / __divdi3.c
blob36f0b37fac6fc8e6028ef4eaa0016a219c32ee49
1 /*
2 * arch/i386/libgcc/__divdi3.c
3 */
5 #include "libgcc.h"
7 LIBGCC int64_t __divdi3(int64_t num, int64_t den)
9 int minus = 0;
10 int64_t v;
12 if ( num < 0 ) {
13 num = -num;
14 minus = 1;
16 if ( den < 0 ) {
17 den = -den;
18 minus ^= 1;
21 v = __udivmoddi4(num, den, NULL);
22 if ( minus )
23 v = -v;
25 return v;