aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/mppa_k1c/i64_udivmod.c
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-01-17 13:45:42 +0100
committerCyril SIX <cyril.six@kalray.eu>2019-01-17 13:45:42 +0100
commit1848a8f4c08ef55a045d4dc1e78f517182a50442 (patch)
treebc1d3147c2db76b962c8fa3682ac5dd1e4e6cd3a /runtime/mppa_k1c/i64_udivmod.c
parent15c5ca037eabb9891f7880bc2d517982ba34e769 (diff)
parentfe3fc2fd3d5a312ac526c5596e851e315782d9f6 (diff)
downloadcompcert-kvx-1848a8f4c08ef55a045d4dc1e78f517182a50442.tar.gz
compcert-kvx-1848a8f4c08ef55a045d4dc1e78f517182a50442.zip
Merge branch 'mppa_k1c' into mppa_postpass
Diffstat (limited to 'runtime/mppa_k1c/i64_udivmod.c')
-rw-r--r--runtime/mppa_k1c/i64_udivmod.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/runtime/mppa_k1c/i64_udivmod.c b/runtime/mppa_k1c/i64_udivmod.c
index 20d8c976..74b39874 100644
--- a/runtime/mppa_k1c/i64_udivmod.c
+++ b/runtime/mppa_k1c/i64_udivmod.c
@@ -1,31 +1,3 @@
-#ifdef __K1_TINYK1__
-unsigned long long
-udivmoddi4(unsigned long long num, unsigned long long den, int modwanted)
-{
- unsigned long long bit = 1;
- unsigned long long res = 0;
-
- while (den < num && bit && !(den & (1L<<31)))
- {
- den <<=1;
- bit <<=1;
- }
- while (bit)
- {
- if (num >= den)
- {
- num -= den;
- res |= bit;
- }
- bit >>=1;
- den >>=1;
- }
- if (modwanted) return num;
- return res;
-}
-
-#else
-
/* THIS IS THE PREVIOUS VERSION, USED ON BOSTAN AND ANDEY */
unsigned long long
udivmoddi4(unsigned long long num, unsigned long long den, int modwanted)
@@ -54,5 +26,3 @@ udivmoddi4(unsigned long long num, unsigned long long den, int modwanted)
return modwanted ? r : q;
}
-#endif /* __K1_TINYK1__ */
-