Mercurial > hg > CbC > CbC_gcc
comparison gcc/realmpfr.h @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | b7f97abdc517 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Definitions of floating-point conversion from compiler | 1 /* Definitions of floating-point conversion from compiler |
2 internal format to MPFR. | 2 internal format to MPFR. |
3 Copyright (C) 2010 | 3 Copyright (C) 2010-2017 Free Software Foundation, Inc. |
4 Free Software Foundation, Inc. | |
5 | 4 |
6 This file is part of GCC. | 5 This file is part of GCC. |
7 | 6 |
8 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
9 the terms of the GNU General Public License as published by the Free | 8 the terms of the GNU General Public License as published by the Free |
20 <http://www.gnu.org/licenses/>. */ | 19 <http://www.gnu.org/licenses/>. */ |
21 | 20 |
22 #ifndef GCC_REALGMP_H | 21 #ifndef GCC_REALGMP_H |
23 #define GCC_REALGMP_H | 22 #define GCC_REALGMP_H |
24 | 23 |
25 #include <gmp.h> | |
26 #include <mpfr.h> | 24 #include <mpfr.h> |
27 #include <mpc.h> | 25 #include <mpc.h> |
28 #include "real.h" | |
29 | |
30 /* In builtins.c. */ | |
31 extern tree do_mpc_arg2 (tree, tree, tree, int, int (*)(mpc_ptr, mpc_srcptr, mpc_srcptr, mpc_rnd_t)); | |
32 | 26 |
33 /* Convert between MPFR and REAL_VALUE_TYPE. The caller is | 27 /* Convert between MPFR and REAL_VALUE_TYPE. The caller is |
34 responsible for initializing and clearing the MPFR parameter. */ | 28 responsible for initializing and clearing the MPFR parameter. */ |
35 | 29 |
36 extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, tree, mp_rnd_t); | 30 extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, tree, mp_rnd_t); |
31 extern void real_from_mpfr (REAL_VALUE_TYPE *, mpfr_srcptr, | |
32 const real_format *, mp_rnd_t); | |
37 extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mp_rnd_t); | 33 extern void mpfr_from_real (mpfr_ptr, const REAL_VALUE_TYPE *, mp_rnd_t); |
38 | 34 |
35 #if (GCC_VERSION >= 3000) | |
36 /* For compatibility with mpfr 2.4 and earlier, we want to only use | |
37 GMP_RND*. */ | |
38 #pragma GCC poison MPFR_RNDN MPFR_RNDZ MPFR_RNDU MPFR_RNDD | |
39 #endif | |
40 | |
39 #endif /* ! GCC_REALGMP_H */ | 41 #endif /* ! GCC_REALGMP_H */ |
40 |