From 40fcce54b6e51b9effdfc91f1feb117c89e2e1c9 Mon Sep 17 00:00:00 2001 From: Jakub Martisko Date: Thu, 3 Aug 2023 10:34:12 +0200 Subject: [PATCH] Fix: previous commit commit caused ABI breakage --- .gmp.metadata | 1 + gmp.spec | 7 ++++++- ibm_z13_simd_part4.patch | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .gmp.metadata diff --git a/.gmp.metadata b/.gmp.metadata new file mode 100644 index 0000000..bc523fe --- /dev/null +++ b/.gmp.metadata @@ -0,0 +1 @@ +5e9341d3807bc7505376f9ed9f5c1c6c57050aa6 gmp-6.2.0.tar.bz2 diff --git a/gmp.spec b/gmp.spec index 4bae014..069f8d7 100644 --- a/gmp.spec +++ b/gmp.spec @@ -6,7 +6,7 @@ Summary: A GNU arbitrary precision library Name: gmp Version: 6.2.0 -Release: 12%{?dist} +Release: 13%{?dist} Epoch: 1 URL: http://gmplib.org/ Source0: ftp://ftp.gmplib.org/pub/gmp-%{version}/gmp-%{version}.tar.bz2 @@ -187,6 +187,11 @@ export LD_LIBRARY_PATH=`pwd`/.libs %{_libdir}/libgmpxx.a %changelog +* Tue Aug 03 2023 Jakub Martisko - 1:6.2.0-13 +- Fix: previous commit removed one function from the library and thus broke the ABI +- function gmpn_preinv_divrem_1 should now not be removed +Related: rhbz#2044216 + * Tue Jul 18 2023 Jakub Martisko - 1:6.2.0-12 - Add SIMD optimization patches for s390x (provided by the IBM) Resolves: rhbz#2044216 diff --git a/ibm_z13_simd_part4.patch b/ibm_z13_simd_part4.patch index f66f615..c87c17c 100644 --- a/ibm_z13_simd_part4.patch +++ b/ibm_z13_simd_part4.patch @@ -33,7 +33,7 @@ index a17503fd0..50e7f39d1 100644 +#define MOD_1_1_TO_MOD_1_2_THRESHOLD 0 /* never mpn_mod_1_1p */ +#define MOD_1_2_TO_MOD_1_4_THRESHOLD 0 /* never mpn_mod_1s_2p */ +#define PREINV_MOD_1_TO_MOD_1_THRESHOLD 5 -+#define USE_PREINV_DIVREM_1 0 ++#define USE_PREINV_DIVREM_1 1 +#define DIV_QR_1N_PI1_METHOD 3 +#define DIV_QR_1_NORM_THRESHOLD MP_SIZE_T_MAX /* never */ +#define DIV_QR_1_UNNORM_THRESHOLD MP_SIZE_T_MAX /* never */