summaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-21 20:25:38 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-21 20:25:38 +0000
commit1b3950b972f64464a2a32edccaf00d8d413d72bd (patch)
tree6b5be96ce3477a91475ee177a52fa7055725c853 /gcc/libgcc2.c
parent2839725565b8a5f5e104b261ad1cfdfa70cad2e6 (diff)
downloadgcc-1b3950b972f64464a2a32edccaf00d8d413d72bd.tar.gz
* libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
__divdi3, __umoddi3, or __moddi3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58382 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index b1e9edc551c..4c78eb417b6 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -366,8 +366,17 @@ __muldi3 (DWtype u, DWtype v)
}
#endif
+#if (defined (L_udivdi3) || defined (L_divdi3) || \
+ defined (L_umoddi3) || defined (L_moddi3))
+#define L_udiv_w_sdiv
+#endif
+
#ifdef L_udiv_w_sdiv
#if defined (sdiv_qrnnd)
+#if (defined (L_udivdi3) || defined (L_divdi3) || \
+ defined (L_umoddi3) || defined (L_moddi3))
+static inline
+#endif
UWtype
__udiv_w_sdiv (UWtype *rp, UWtype a1, UWtype a0, UWtype d)
{