1 diff -r 9dc4a391dd6d mpi/generic/mpi-asm-defs.h
2 --- a/mpi/generic/mpi-asm-defs.h Tue Jul 29 16:44:47 2014 +0200
3 +++ b/mpi/generic/mpi-asm-defs.h Tue Jul 29 16:47:43 2014 +0200
5 -/* This file defines some basic constants for the MPI machinery. We
6 - * need to define the types on a per-CPU basis, so it is done with
8 +/* AMD64 compiled with x32 fails in assembly due to incorrect
9 + * size of long detected. Using compiler information to detect
10 + * this since it is no longer per-architecture
12 +#if defined(__GNUC__) && __GNUC__ >= 3 && defined(__x86_64__) && defined(__ILP32__)
13 +#define BYTES_PER_MPI_LIMB 8
15 #define BYTES_PER_MPI_LIMB (SIZEOF_UNSIGNED_LONG)