Module Name: src Committed By: mrg Date: Mon Jul 12 18:42:40 UTC 2021
Modified Files: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb: config.h config.m4 gmp.h src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el: config.h config.m4 gmp.h Log Message: mknative-gmp for mipsn64* and GMP 6.2.1. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h cvs rdiff -u -r1.1 -r1.2 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 \ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.2 --- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h:1.1 Sun Apr 25 23:57:47 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.h Mon Jul 12 18:42:39 2021 @@ -548,7 +548,7 @@ see https://www.gnu.org/licenses/. #define PACKAGE_NAME "GNU MP" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "GNU MP 6.2.0" +#define PACKAGE_STRING "GNU MP 6.2.1" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "gmp" @@ -557,7 +557,7 @@ see https://www.gnu.org/licenses/. #define PACKAGE_URL "http://www.gnu.org/software/gmp/" /* Define to the version of this package. */ -#define PACKAGE_VERSION "6.2.0" +#define PACKAGE_VERSION "6.2.1" /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void @@ -569,13 +569,13 @@ see https://www.gnu.org/licenses/. #define SIZEOF_UNSIGNED 4 /* The size of `unsigned long', as computed by sizeof. */ -#define SIZEOF_UNSIGNED_LONG 4 +#define SIZEOF_UNSIGNED_LONG 8 /* The size of `unsigned short', as computed by sizeof. */ #define SIZEOF_UNSIGNED_SHORT 2 /* The size of `void *', as computed by sizeof. */ -#define SIZEOF_VOID_P 4 +#define SIZEOF_VOID_P 8 /* Define to 1 if sscanf requires writable inputs */ /* #undef SSCANF_WRITABLE_INPUT */ @@ -590,7 +590,7 @@ see https://www.gnu.org/licenses/. #define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC /* Version number of package */ -#define VERSION "6.2.0" +#define VERSION "6.2.1" /* Define to 1 to enable ASSERT checking, per --enable-assert */ /* #undef WANT_ASSERT */ Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.2 --- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4:1.1 Sun Apr 25 23:57:47 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/config.m4 Mon Jul 12 18:42:39 2021 @@ -27,7 +27,7 @@ changequote(`,') ifdef(`__CONFIG_M4_INCLUDED__',,` include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4') include_mpn(`mips32/mips-defs.m4') -define_not_for_expansion(`HAVE_HOST_CPU_mips64') +define_not_for_expansion(`HAVE_HOST_CPU_mipsn64eb') define_not_for_expansion(`HAVE_ABI_n32') define_not_for_expansion(`HAVE_LIMB_BIG_ENDIAN') define_not_for_expansion(`HAVE_DOUBLE_IEEE_BIG_ENDIAN') Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.2 --- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h:1.1 Sun Apr 25 23:57:47 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64eb/gmp.h Mon Jul 12 18:42:39 2021 @@ -361,11 +361,9 @@ typedef __mpq_struct *mpq_ptr; GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 inline semantics, unless -fgnu89-inline is used. */ #ifdef __GNUC__ -#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) \ - || (defined __GNUC_GNU_INLINE__ && defined __cplusplus) +#if (defined __GNUC_STDC_INLINE__) || \ + (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || (__GNUC__ > 4) #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__)) -#else -#define __GMP_EXTERN_INLINE extern __inline__ #endif #define __GMP_INLINE_PROTOTYPES 1 #endif @@ -1693,6 +1691,9 @@ __GMP_DECLSPEC int mpn_sec_invert (mp_pt #define mpn_sec_invert_itch __MPN(sec_invert_itch) __GMP_DECLSPEC mp_size_t mpn_sec_invert_itch (mp_size_t) __GMP_ATTRIBUTE_PURE; +#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv) +__GMP_DECLSPEC mp_limb_t mpn_udiv_w_sdiv (mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t); + /**************** mpz inlines ****************/ @@ -2324,12 +2325,12 @@ enum /* Define CC and CFLAGS which were used to build this version of GMP */ #define __GMP_CC "gcc" -#define __GMP_CFLAGS "-O2 -pedantic -mabi=n32" +#define __GMP_CFLAGS "-O2 -pedantic" /* Major version number is the value of __GNU_MP__ too, above. */ #define __GNU_MP_VERSION 6 #define __GNU_MP_VERSION_MINOR 2 -#define __GNU_MP_VERSION_PATCHLEVEL 0 +#define __GNU_MP_VERSION_PATCHLEVEL 1 #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL) #define __GMP_H__ Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h:1.2 --- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h:1.1 Sun Apr 25 23:58:23 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.h Mon Jul 12 18:42:40 2021 @@ -548,7 +548,7 @@ see https://www.gnu.org/licenses/. #define PACKAGE_NAME "GNU MP" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "GNU MP 6.2.0" +#define PACKAGE_STRING "GNU MP 6.2.1" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "gmp" @@ -557,7 +557,7 @@ see https://www.gnu.org/licenses/. #define PACKAGE_URL "http://www.gnu.org/software/gmp/" /* Define to the version of this package. */ -#define PACKAGE_VERSION "6.2.0" +#define PACKAGE_VERSION "6.2.1" /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void @@ -569,13 +569,13 @@ see https://www.gnu.org/licenses/. #define SIZEOF_UNSIGNED 4 /* The size of `unsigned long', as computed by sizeof. */ -#define SIZEOF_UNSIGNED_LONG 4 +#define SIZEOF_UNSIGNED_LONG 8 /* The size of `unsigned short', as computed by sizeof. */ #define SIZEOF_UNSIGNED_SHORT 2 /* The size of `void *', as computed by sizeof. */ -#define SIZEOF_VOID_P 4 +#define SIZEOF_VOID_P 8 /* Define to 1 if sscanf requires writable inputs */ /* #undef SSCANF_WRITABLE_INPUT */ @@ -590,7 +590,7 @@ see https://www.gnu.org/licenses/. #define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC /* Version number of package */ -#define VERSION "6.2.0" +#define VERSION "6.2.1" /* Define to 1 to enable ASSERT checking, per --enable-assert */ /* #undef WANT_ASSERT */ Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4:1.2 --- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4:1.1 Sun Apr 25 23:58:23 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/config.m4 Mon Jul 12 18:42:40 2021 @@ -27,7 +27,7 @@ changequote(`,') ifdef(`__CONFIG_M4_INCLUDED__',,` include(CONFIG_TOP_SRCDIR`/mpn/asm-defs.m4') include_mpn(`mips32/mips-defs.m4') -define_not_for_expansion(`HAVE_HOST_CPU_mips64el') +define_not_for_expansion(`HAVE_HOST_CPU_mipsn64el') define_not_for_expansion(`HAVE_ABI_n32') define_not_for_expansion(`HAVE_LIMB_LITTLE_ENDIAN') define_not_for_expansion(`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN') Index: src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h diff -u src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h:1.1 src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h:1.2 --- src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h:1.1 Sun Apr 25 23:58:23 2021 +++ src/external/lgpl3/gmp/lib/libgmp/arch/mipsn64el/gmp.h Mon Jul 12 18:42:40 2021 @@ -361,11 +361,9 @@ typedef __mpq_struct *mpq_ptr; GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 inline semantics, unless -fgnu89-inline is used. */ #ifdef __GNUC__ -#if (defined __GNUC_STDC_INLINE__) || (__GNUC__ == 4 && __GNUC_MINOR__ == 2) \ - || (defined __GNUC_GNU_INLINE__ && defined __cplusplus) +#if (defined __GNUC_STDC_INLINE__) || \ + (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || (__GNUC__ > 4) #define __GMP_EXTERN_INLINE extern __inline__ __attribute__ ((__gnu_inline__)) -#else -#define __GMP_EXTERN_INLINE extern __inline__ #endif #define __GMP_INLINE_PROTOTYPES 1 #endif @@ -1693,6 +1691,9 @@ __GMP_DECLSPEC int mpn_sec_invert (mp_pt #define mpn_sec_invert_itch __MPN(sec_invert_itch) __GMP_DECLSPEC mp_size_t mpn_sec_invert_itch (mp_size_t) __GMP_ATTRIBUTE_PURE; +#define mpn_udiv_w_sdiv __MPN(udiv_w_sdiv) +__GMP_DECLSPEC mp_limb_t mpn_udiv_w_sdiv (mp_limb_t *, mp_limb_t, mp_limb_t, mp_limb_t); + /**************** mpz inlines ****************/ @@ -2324,12 +2325,12 @@ enum /* Define CC and CFLAGS which were used to build this version of GMP */ #define __GMP_CC "gcc" -#define __GMP_CFLAGS "-O2 -pedantic -mabi=n32" +#define __GMP_CFLAGS "-O2 -pedantic" /* Major version number is the value of __GNU_MP__ too, above. */ #define __GNU_MP_VERSION 6 #define __GNU_MP_VERSION_MINOR 2 -#define __GNU_MP_VERSION_PATCHLEVEL 0 +#define __GNU_MP_VERSION_PATCHLEVEL 1 #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 + __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL) #define __GMP_H__