summaryrefslogtreecommitdiff
path: root/mpi/longlong.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2011-07-04 12:45:44 +0200
committerWerner Koch <wk@gnupg.org>2011-07-04 12:45:44 +0200
commit5e14de02b323d207151429d37f006ec30bbf7783 (patch)
tree23b557677013b25e33e64ca098f4d496f1937408 /mpi/longlong.h
parent7cae9fdfc9e322941545a3a2128a5ead1010a6cf (diff)
downloadlibgcrypt-5e14de02b323d207151429d37f006ec30bbf7783.tar.gz
Allow building for ARM thumb. Similar to bug#1202.
Diffstat (limited to 'mpi/longlong.h')
-rw-r--r--mpi/longlong.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpi/longlong.h b/mpi/longlong.h
index be88cae2..5dba7931 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, 2003, 2004 Free Software Foundation, Inc.
+ 2000, 2001, 2002, 2003, 2004, 2011 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
@@ -184,7 +184,7 @@ extern UDItype __udiv_qrnnd ();
/***************************************
************** ARM ******************
***************************************/
-#if defined (__arm__) && W_TYPE_SIZE == 32
+#if defined (__arm__) && W_TYPE_SIZE == 32 && !defined (__thumb__)
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
__asm__ ("adds %1, %4, %5\n" \
"adc %0, %2, %3" \