[PATCH] set mpi limb for all amd64 targets

Mike Frysinger vapier at gentoo.org
Wed Sep 12 03:44:36 CEST 2012


The new x32 ABI has sizeof(unsigned long) == 4 which causes random
crashes.  Add an explicit setting for all amd64 targets so things
work nicely.

This patch is by H.J. Lu.
---
 mpi/amd64/mpi-asm-defs.h |    4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 mpi/amd64/mpi-asm-defs.h

diff --git a/mpi/amd64/mpi-asm-defs.h b/mpi/amd64/mpi-asm-defs.h
new file mode 100644
index 0000000..17de1c1
--- /dev/null
+++ b/mpi/amd64/mpi-asm-defs.h
@@ -0,0 +1,4 @@
+/* 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.  */
+#define BYTES_PER_MPI_LIMB  8
-- 
1.7.9.7




More information about the Gcrypt-devel mailing list