Annotation of OpenXM_contrib/gmp/mpfr/mpf2mpfr.h, Revision 1.1
1.1 ! ohara 1: /* mpf2mpfr.h -- Compatibility include file with mpf.
! 2:
! 3: Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
! 4:
! 5: This file is part of the MPFR Library.
! 6:
! 7: The MPFR Library is free software; you can redistribute it and/or modify
! 8: it under the terms of the GNU Lesser General Public License as published by
! 9: the Free Software Foundation; either version 2.1 of the License, or (at your
! 10: option) any later version.
! 11:
! 12: The MPFR Library is distributed in the hope that it will be useful, but
! 13: WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
! 14: or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
! 15: License for more details.
! 16:
! 17: You should have received a copy of the GNU Lesser General Public License
! 18: along with the MPFR Library; see the file COPYING.LIB. If not, write to
! 19: the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
! 20: MA 02111-1307, USA. */
! 21:
! 22: /* types */
! 23: #define mpf_t mpfr_t
! 24:
! 25: /* functions which don't take as argument the rounding mode */
! 26: #undef mpf_ceil
! 27: #define mpf_ceil mpfr_ceil
! 28: #undef mpf_clear
! 29: #define mpf_clear mpfr_clear
! 30: #undef mpf_cmp
! 31: #define mpf_cmp mpfr_cmp
! 32: #undef mpf_cmp_si
! 33: #define mpf_cmp_si mpfr_cmp_si
! 34: #undef mpf_cmp_ui
! 35: #define mpf_cmp_ui mpfr_cmp_ui
! 36: #undef mpf_eq
! 37: #define mpf_eq mpfr_eq
! 38: #undef mpf_floor
! 39: #define mpf_floor mpfr_floor
! 40: #undef mpf_get_d
! 41: #define mpf_get_d mpfr_get_d1
! 42: #undef mpf_get_prec
! 43: #define mpf_get_prec mpfr_get_prec
! 44: #undef mpf_init
! 45: #define mpf_init mpfr_init
! 46: #undef mpf_init2
! 47: #define mpf_init2 mpfr_init2
! 48: #undef mpf_random2
! 49: #define mpf_random2 mpfr_random2
! 50: #undef mpf_set_default_prec
! 51: #define mpf_set_default_prec mpfr_set_default_prec
! 52: #undef mpf_set_prec
! 53: #define mpf_set_prec(x,p) mpfr_round_prec(x, __gmp_default_rounding_mode, p)
! 54: #undef mpf_set_prec_raw
! 55: #define mpf_set_prec_raw mpfr_set_prec_raw
! 56: #undef mpf_trunc
! 57: #define mpf_trunc mpfr_trunc
! 58: #undef mpf_sgn
! 59: #define mpf_sgn mpfr_sgn
! 60: #undef mpf_swap
! 61: #define mpf_swap mpfr_swap
! 62:
! 63: /* functions which take as argument the rounding mode */
! 64: #undef mpf_abs
! 65: #define mpf_abs(x,y) mpfr_abs(x,y,__gmp_default_rounding_mode)
! 66: #undef mpf_add
! 67: #define mpf_add(x,y,z) mpfr_add(x,y,z,__gmp_default_rounding_mode)
! 68: #undef mpf_add_ui
! 69: #define mpf_add_ui(x,y,z) \
! 70: mpfr_add_ui(x,y,z,__gmp_default_rounding_mode)
! 71: #undef mpf_div
! 72: #define mpf_div(x,y,z) mpfr_div(x,y,z,__gmp_default_rounding_mode)
! 73: #undef mpf_div_ui
! 74: #define mpf_div_ui(x,y,z) \
! 75: mpfr_div_ui(x,y,z,__gmp_default_rounding_mode)
! 76: #undef mpf_div_2exp
! 77: #define mpf_div_2exp(x,y,z) \
! 78: mpfr_div_2exp(x,y,z,__gmp_default_rounding_mode)
! 79: #undef mpf_dump
! 80: #define mpf_dump(x,y,z) \
! 81: mpfr_dump(x,y,z,__gmp_default_rounding_mode)
! 82: #undef mpf_get_str
! 83: #define mpf_get_str(x,y,z,t,u) \
! 84: mpfr_get_str(x,y,z,t,u,__gmp_default_rounding_mode)
! 85: #undef mpf_inp_str
! 86: #define mpf_inp_str(x,y,z) mpfr_inp_str(x,y,z,__gmp_default_rounding_mode)
! 87: #undef mpf_set_str
! 88: #define mpf_set_str(x,y,z) mpfr_set_str(x,y,z,__gmp_default_rounding_mode)
! 89: #undef mpf_init_set
! 90: #define mpf_init_set(x,y) mpfr_init_set(x,y,__gmp_default_rounding_mode)
! 91: #undef mpf_init_set_d
! 92: #define mpf_init_set_d(x,y) mpfr_init_set_d(x,y,__gmp_default_rounding_mode)
! 93: #undef mpf_init_set_si
! 94: #define mpf_init_set_si(x,y) mpfr_init_set_si(x,y,__gmp_default_rounding_mode)
! 95: #undef mpf_init_set_str
! 96: #define mpf_init_set_str(x,y,z) mpfr_init_set_str(x,y,z,__gmp_default_rounding_mode)
! 97: #undef mpf_init_set_ui
! 98: #define mpf_init_set_ui(x,y) mpfr_init_set_ui(x,y,__gmp_default_rounding_mode)
! 99: #undef mpf_mul
! 100: #define mpf_mul(x,y,z) mpfr_mul(x,y,z,__gmp_default_rounding_mode)
! 101: #undef mpf_mul_2exp
! 102: #define mpf_mul_2exp(x,y,z) mpfr_mul_2exp(x,y,z,__gmp_default_rounding_mode)
! 103: #undef mpf_mul_ui
! 104: #define mpf_mul_ui(x,y,z) mpfr_mul_ui(x,y,z,__gmp_default_rounding_mode)
! 105: #undef mpf_neg
! 106: #define mpf_neg(x,y) mpfr_neg(x,y,__gmp_default_rounding_mode)
! 107: #undef mpf_out_str
! 108: #define mpf_out_str(x,y,z,t) mpfr_out_str(x,y,z,t,__gmp_default_rounding_mode)
! 109: #undef mpf_pow_ui
! 110: #define mpf_pow_ui(x,y,z) mpfr_pow_ui(x,y,z,__gmp_default_rounding_mode)
! 111: #undef mpf_reldiff
! 112: #define mpf_reldiff(x,y,z) mpfr_reldiff(x,y,z,__gmp_default_rounding_mode)
! 113: #undef mpf_set
! 114: #define mpf_set(x,y) mpfr_set(x,y,__gmp_default_rounding_mode)
! 115: #undef mpf_set_d
! 116: #define mpf_set_d(x,y) mpfr_set_d(x,y,__gmp_default_rounding_mode)
! 117: #undef mpf_set_q
! 118: #define mpf_set_q(x,y) mpfr_set_q(x,y,__gmp_default_rounding_mode)
! 119: #undef mpf_set_si
! 120: #define mpf_set_si(x,y) mpfr_set_si(x,y,__gmp_default_rounding_mode)
! 121: #undef mpf_set_ui
! 122: #define mpf_set_ui(x,y) mpfr_set_ui(x,y,__gmp_default_rounding_mode)
! 123: #undef mpf_set_z
! 124: #define mpf_set_z(x,y) mpfr_set_z(x,y,__gmp_default_rounding_mode)
! 125: #undef mpf_sqrt
! 126: #define mpf_sqrt(x,y) mpfr_sqrt(x,y,__gmp_default_rounding_mode)
! 127: #undef mpf_sqrt_ui
! 128: #define mpf_sqrt_ui(x,y) mpfr_sqrt_ui(x,y,__gmp_default_rounding_mode)
! 129: #undef mpf_sub
! 130: #define mpf_sub(x,y,z) mpfr_sub(x,y,z,__gmp_default_rounding_mode)
! 131: #undef mpf_sub_ui
! 132: #define mpf_sub_ui(x,y,z) mpfr_sub_ui(x,y,z,__gmp_default_rounding_mode)
! 133: #undef mpf_ui_div
! 134: #define mpf_ui_div(x,y,z) mpfr_ui_div(x,y,z,__gmp_default_rounding_mode)
! 135: #undef mpf_ui_sub
! 136: #define mpf_ui_sub(x,y,z) mpfr_ui_sub(x,y,z,__gmp_default_rounding_mode)
! 137: #undef mpf_urandomb
! 138: #define mpf_urandomb(x,y,n) mpfr_urandomb(x,y)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>