summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-09-26 16:29:41 +0200
committerTorbjorn Granlund <tege@gmplib.org>2011-09-26 16:29:41 +0200
commitde6a514a1966ca3502c6b3894f0a67799155490d (patch)
tree5edc01aaea7f3145c142c6c44574ff9026288d07 /longlong.h
parent73b75839bc78b9d72e09388071295ae4cb2d34dc (diff)
downloadgmp-de6a514a1966ca3502c6b3894f0a67799155490d.tar.gz
(SH): Recognise predefs for all SH processors as defined by current gcc versions.
Diffstat (limited to 'longlong.h')
-rw-r--r--longlong.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/longlong.h b/longlong.h
index 35db97094..3eb75c234 100644
--- a/longlong.h
+++ b/longlong.h
@@ -1373,7 +1373,7 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype));
} while (0)
#endif /* RT/ROMP */
-#if defined (__sh2__) && W_TYPE_SIZE == 32
+#if (defined (__SH2__) || defined (__SH3__) || defined (__SH4__)) && W_TYPE_SIZE == 32
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("dmulu.l %2,%3\n\tsts macl,%1\n\tsts mach,%0" \
: "=r" (w1), "=r" (w0) : "r" (u), "r" (v) : "macl", "mach")