summaryrefslogtreecommitdiff
path: root/mpi
diff options
context:
space:
mode:
authorKristian Fiskerstrand <kf@sumptuouscapital.com>2014-07-29 19:34:31 +0200
committerWerner Koch <wk@gnupg.org>2014-08-05 11:50:38 +0200
commita17c29844b63e9e869f7855d901bc9d859234ead (patch)
treec4187282802ae149a9ae07eed81b5ae21f9e8ff0 /mpi
parent4556f9b19c024f16bdf542da7173395c0741b91d (diff)
downloadlibgcrypt-a17c29844b63e9e869f7855d901bc9d859234ead.tar.gz
Fix building for the x32 target without asm modules.
* mpi/generic/mpi-asm-defs.h: Use a fixed value for the x32 ABI. -- See commit fd6721c235a5bdcb332c8eb708fbd4f96e52e824 for details.
Diffstat (limited to 'mpi')
-rw-r--r--mpi/generic/mpi-asm-defs.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/mpi/generic/mpi-asm-defs.h b/mpi/generic/mpi-asm-defs.h
index 13424e28..e607806e 100644
--- a/mpi/generic/mpi-asm-defs.h
+++ b/mpi/generic/mpi-asm-defs.h
@@ -1,10 +1,8 @@
-/* This file defines some basic constants for the MPI machinery. We
- * need to define the types on a per-CPU basis, so it is done with
- * this file here. */
+/* This file defines some basic constants for the MPI machinery.
+ * AMD64 compiled for the x32 ABI is special and thus we can't use the
+ * standard values for this ABI. */
+#if __GNUC__ >= 3 && defined(__x86_64__) && defined(__ILP32__)
+#define BYTES_PER_MPI_LIMB 8
+#else
#define BYTES_PER_MPI_LIMB (SIZEOF_UNSIGNED_LONG)
-
-
-
-
-
-
+#endif