From: Karl Berry Date: Thu, 25 Sep 2025 14:44:28 +0000 (-0700) Subject: autoupdate X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eeb8077c6464a8cf7eee79785d3a8044e9c261f;p=thirdparty%2Fgnulib.git autoupdate --- diff --git a/lib/mini-gmp.c b/lib/mini-gmp.c index 62b97b854e..9f3812b31b 100644 --- a/lib/mini-gmp.c +++ b/lib/mini-gmp.c @@ -51,7 +51,11 @@ see https://www.gnu.org/licenses/. */ #include "mini-gmp.h" -#if !defined(MINI_GMP_DONT_USE_FLOAT_H) +#ifndef MINI_GMP_ENABLE_FLOAT +#define MINI_GMP_ENABLE_FLOAT 1 +#endif + +#if MINI_GMP_ENABLE_FLOAT #include #endif @@ -1705,6 +1709,7 @@ mpz_roinit_n (mpz_t x, mp_srcptr xp, mp_size_t xs) } +#if MINI_GMP_ENABLE_FLOAT /* Conversions and comparison to double. */ void mpz_set_d (mpz_t r, double x) @@ -1861,6 +1866,7 @@ mpz_cmp_d (const mpz_t x, double d) return mpz_cmpabs_d (x, d); } } +#endif /* MINI_GMP_ENABLE_FLOAT */ /* MPZ comparisons and the like. */ diff --git a/lib/mini-mpq.c b/lib/mini-mpq.c index 58ce37f1d2..db318df133 100644 --- a/lib/mini-mpq.c +++ b/lib/mini-mpq.c @@ -41,6 +41,10 @@ see https://www.gnu.org/licenses/. */ #include "mini-mpq.h" +#ifndef MINI_GMP_ENABLE_FLOAT +#define MINI_GMP_ENABLE_FLOAT 1 +#endif + #ifndef GMP_LIMB_HIGHBIT /* Define macros and static functions already defined by mini-gmp.c */ #define GMP_LIMB_BITS (sizeof(mp_limb_t) * CHAR_BIT) @@ -420,6 +424,7 @@ mpq_inv (mpq_t r, const mpq_t q) } +#if MINI_GMP_ENABLE_FLOAT /* MPQ to/from double. */ void mpq_set_d (mpq_t r, double x) @@ -472,7 +477,7 @@ mpq_get_d (const mpq_t u) return ret; } - +#endif /* MINI_GMP_ENABLE_FLOAT */ /* MPQ and strings/streams. */ char *