aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gnu.org>1992-07-07 18:48:05 +0000
committerTorbjorn Granlund <tege@gnu.org>1992-07-07 18:48:05 +0000
commit1814cfd91d7e9c41488b4c91fcae825eca391729 (patch)
treed4dce06f597d2f0a37e2df5660b34dd8ffa1c2b9 /gcc
parent894bc700779ef122a02ecc140159e946c695bc4a (diff)
downloadgcc-1814cfd91d7e9c41488b4c91fcae825eca391729.zip
gcc-1814cfd91d7e9c41488b4c91fcae825eca391729.tar.gz
gcc-1814cfd91d7e9c41488b4c91fcae825eca391729.tar.bz2
*** empty log message ***
From-SVN: r1502
Diffstat (limited to 'gcc')
-rw-r--r--gcc/longlong.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h
index ccc5c24..fbee407 100644
--- a/gcc/longlong.h
+++ b/gcc/longlong.h
@@ -890,6 +890,18 @@
(q) = (USItype) __q1 * __ll_B | __q0; \
(r) = __r0; \
} while (0)
+
+/* If the processor has no udiv_qrnnd but sdiv_qrnnd, go through
+ __udiv_using_sdiv (defined in libgcc or elsewhere). */
+#if !defined (udiv_qrnnd) && defined (sdiv_qrnnd)
+#define udiv_qrnnd(q, r, nh, nl, d) \
+ do { \
+ USItype __r; \
+ (q) = __udiv_using_sdiv (&__r, nh, nl, d); \
+ (r) = __r; \
+ } while (0)
+#endif
+
/* If udiv_qrnnd was not defined for this processor, use __udiv_qrnnd_c. */
#if !defined (udiv_qrnnd)
#define UDIV_NEEDS_NORMALIZATION 1