summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-11-29 17:26:31 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-11-29 17:26:31 +0000
commit1fd6afd9a29c0a6a2a36bb072e48ae0a400d140b (patch)
treee16a8399ca4d265b99ea9f62c0dcc420985ca3b2
parent614ccd2fcff6e9ae112d624be458d020336a8ffb (diff)
downloadmpfr-1fd6afd9a29c0a6a2a36bb072e48ae0a400d140b.tar.gz
redefined external symbols in the __gmpfr namespace
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2092 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--mpfr-impl.h9
-rw-r--r--mpfr.h7
2 files changed, 16 insertions, 0 deletions
diff --git a/mpfr-impl.h b/mpfr-impl.h
index beb6f9b31..8a2836260 100644
--- a/mpfr-impl.h
+++ b/mpfr-impl.h
@@ -19,6 +19,15 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
+/* redefinition of external symbols in the __gmpfr namespace */
+#define __mpfr_const_log2_prec __gmpfr_const_log2_prec
+#define __mpfr_const_pi_prec __gmpfr_const_pi_prec
+#define _mpfr_ceil_exp2 __gmpfr_ceil_exp2
+#define _mpfr_ceil_log2 __gmpfr_ceil_log2
+#define _mpfr_floor_log2 __gmpfr_floor_log2
+#define _mpfr_isqrt __gmpfr_isqrt
+#define _mpfr_cuberoot __gmpfr_cuberoot
+
#ifndef HAVE_STRCASECMP
#define strcasecmp mpfr_strcasecmp
#endif
diff --git a/mpfr.h b/mpfr.h
index 4f1149484..8129cc900 100644
--- a/mpfr.h
+++ b/mpfr.h
@@ -29,6 +29,13 @@ MA 02111-1307, USA. */
#define _MPFR_H_HAVE_FILE 1
#endif
+/* redefinition of external symbols in the __gmpfr namespace */
+#define __gmp_default_rounding_mode __gmpfr_default_rounding_mode
+#define __mpfr_default_fp_bit_precision __gmpfr_default_fp_bit_precision
+#define __mpfr_flags __gmpfr_flags
+#define __mpfr_emin __gmpfr_emin
+#define __mpfr_emax __gmpfr_emax
+
/* Definition of rounding modes */
#define GMP_RNDN 0