[libgcc] Provide __divmoddi4()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2016-05-05 23:42:57 +01:00
parent a5885fbc19
commit 67f539fa80
4 changed files with 28 additions and 31 deletions
+1 -17
View File
@@ -6,21 +6,5 @@
__libgcc int64_t __divdi3(int64_t num, int64_t den)
{
int minus = 0;
int64_t v;
if ( num < 0 ) {
num = -num;
minus = 1;
}
if ( den < 0 ) {
den = -den;
minus ^= 1;
}
v = __udivmoddi4(num, den, NULL);
if ( minus )
v = -v;
return v;
return __divmoddi4(num, den, NULL);
}