1
1
/* mpfr.h -- Include file for mpfr.
2
2
3
- Copyright 1999-2023 Free Software Foundation, Inc.
4
- Contributed by the AriC and Caramba projects, INRIA.
3
+ Copyright 1999-2025 Free Software Foundation, Inc.
4
+ Contributed by the Pascaline and Caramba projects, INRIA.
5
5
6
6
This file is part of the GNU MPFR Library.
7
7
@@ -16,18 +16,17 @@ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16
16
License for more details.
17
17
18
18
You should have received a copy of the GNU Lesser General Public License
19
- along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
20
- https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
21
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
19
+ along with the GNU MPFR Library; see the file COPYING.LESSER.
20
+ If not, see <https://www.gnu.org/licenses/>. */
22
21
23
22
#ifndef __MPFR_H
24
23
#define __MPFR_H
25
24
26
25
/* Define MPFR version number */
27
26
#define MPFR_VERSION_MAJOR 4
28
27
#define MPFR_VERSION_MINOR 2
29
- #define MPFR_VERSION_PATCHLEVEL 1
30
- #define MPFR_VERSION_STRING "4.2.1 "
28
+ #define MPFR_VERSION_PATCHLEVEL 2
29
+ #define MPFR_VERSION_STRING "4.2.2 "
31
30
32
31
/* User macros:
33
32
MPFR_USE_FILE: Define it to make MPFR define functions dealing
@@ -476,8 +475,14 @@ __MPFR_DECLSPEC int mpfr_set_decimal128 (mpfr_ptr, _Decimal128, mpfr_rnd_t);
476
475
#endif
477
476
__MPFR_DECLSPEC int mpfr_set_ld (mpfr_ptr , long double , mpfr_rnd_t );
478
477
#ifdef MPFR_WANT_FLOAT128
479
- __MPFR_DECLSPEC int mpfr_set_float128 (mpfr_ptr , _Float128 , mpfr_rnd_t );
480
- __MPFR_DECLSPEC _Float128 mpfr_get_float128 (mpfr_srcptr , mpfr_rnd_t );
478
+ /* The user is free to define mpfr_float128 as another equivalent type,
479
+ such as __float128 if this one is supported by the current compiler
480
+ but _Float128 isn't. */
481
+ # ifndef mpfr_float128
482
+ # define mpfr_float128 _Float128
483
+ # endif
484
+ __MPFR_DECLSPEC int mpfr_set_float128 (mpfr_ptr , mpfr_float128 , mpfr_rnd_t );
485
+ __MPFR_DECLSPEC mpfr_float128 mpfr_get_float128 (mpfr_srcptr , mpfr_rnd_t );
481
486
#endif
482
487
__MPFR_DECLSPEC int mpfr_set_z (mpfr_ptr , mpz_srcptr , mpfr_rnd_t );
483
488
__MPFR_DECLSPEC int mpfr_set_z_2exp (mpfr_ptr , mpz_srcptr , mpfr_exp_t ,
0 commit comments