diff options
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/config/arc/lib1funcs.S | 2 | ||||
-rw-r--r-- | libgcc/config/arc/lib2funcs.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libgcc/config/arc/lib1funcs.S b/libgcc/config/arc/lib1funcs.S index 14fd1d2..b063612 100644 --- a/libgcc/config/arc/lib1funcs.S +++ b/libgcc/config/arc/lib1funcs.S @@ -936,6 +936,7 @@ SYM(__divsi3): #endif /* L_divsi3 */ +#ifndef __ARC_RF16__ #ifdef L_umodsi3 .section .text .align 4 @@ -950,6 +951,7 @@ SYM(__umodsi3): ENDFUNC(__umodsi3) #endif /* L_umodsi3 */ +#endif /* !__ARC_RF16__ */ #ifdef L_modsi3 .section .text diff --git a/libgcc/config/arc/lib2funcs.c b/libgcc/config/arc/lib2funcs.c index 70727b5..8cba451 100644 --- a/libgcc/config/arc/lib2funcs.c +++ b/libgcc/config/arc/lib2funcs.c @@ -59,7 +59,7 @@ udivmodsi4 (nint32_t num, nint32_t den, word_t modwanted) nint32_t bit = 1; nint32_t res = 0; - while (den < num && bit && !(den & (1LL << 63))) + while (den < num && bit && !(den & (1L << 31))) { den <<= 1; bit <<= 1; |