ARM: libtcc1: Add __divsi3, __modsi3, __udivsi3, __umodsi3.

* lib/libtcc1.c (__divsi3, __modsi3, __udivsi3, __umodsi3): New functions.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-12-13 00:07:10 +01:00
parent 04afe3e238
commit 4a9d7a1f33
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -324,4 +324,27 @@ __floatdidf (int a, int b)
return 0;
}
int
__divsi3 (int num, int den)
{
return __mesabi_idiv (num, den);
}
int
__modsi3 (int num, int den)
{
return __mesabi_imod (num, den);
}
int
__udivsi3 (int num, int den)
{
return __mesabi_udiv (num, den);
}
int
__umodsi3 (int num, int den)
{
return __mesabi_umod (num, den);
}
#endif //__arm__