summaryrefslogtreecommitdiff
path: root/mpi/longlong.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2003-04-15 12:48:04 +0000
committerWerner Koch <wk@gnupg.org>2003-04-15 12:48:04 +0000
commit05a4715e94bd7d6c7d63c1dc307caa5a330a3b7e (patch)
tree8aa87a111f7c9702fb013ffc3250a067cb65b326 /mpi/longlong.h
parente3ec9ea7b8284b540795d6e5e02d4676b27dbb42 (diff)
downloadlibgcrypt-05a4715e94bd7d6c7d63c1dc307caa5a330a3b7e.tar.gz
* longlong.h (umul_ppmm): Support SH3 and SH4. Thanks to
kazuya.s@jp.yokogawa.com.
Diffstat (limited to 'mpi/longlong.h')
-rw-r--r--mpi/longlong.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/mpi/longlong.h b/mpi/longlong.h
index 6996ebed..b0e8e972 100644
--- a/mpi/longlong.h
+++ b/mpi/longlong.h
@@ -2,7 +2,7 @@
Note: I added some stuff for use with gnupg
Copyright (C) 1991, 1992, 1993, 1994, 1996, 1998,
- 2000, 2001, 2002 Free Software Foundation, Inc.
+ 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as published by
@@ -1037,7 +1037,8 @@ extern USItype __udiv_qrnnd ();
/***************************************
************** SH2 ******************
***************************************/
-#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" \