From 4a9d7a1f33f5a1decbbb798359367b1cc4fc3962 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sun, 13 Dec 2020 00:07:10 +0100 Subject: [PATCH] ARM: libtcc1: Add __divsi3, __modsi3, __udivsi3, __umodsi3. * lib/libtcc1.c (__divsi3, __modsi3, __udivsi3, __umodsi3): New functions. --- lib/libtcc1.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lib/libtcc1.c b/lib/libtcc1.c index 1dcf9361..d03667d4 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -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__