From 0e752a6e215aee21dc73da097c3225495d54a5b6 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Fri, 9 Apr 2021 07:19:03 -0300 Subject: Add libotr/etc sources --- libotr/libgcrypt-1.8.7/mpi/generic/mpi-asm-defs.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 libotr/libgcrypt-1.8.7/mpi/generic/mpi-asm-defs.h (limited to 'libotr/libgcrypt-1.8.7/mpi/generic/mpi-asm-defs.h') diff --git a/libotr/libgcrypt-1.8.7/mpi/generic/mpi-asm-defs.h b/libotr/libgcrypt-1.8.7/mpi/generic/mpi-asm-defs.h new file mode 100644 index 0000000..e607806 --- /dev/null +++ b/libotr/libgcrypt-1.8.7/mpi/generic/mpi-asm-defs.h @@ -0,0 +1,8 @@ +/* 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 -- cgit 1.4.1