summaryrefslogtreecommitdiff
path: root/set.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-04-28 07:43:36 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2004-04-28 07:43:36 +0000
commit9ab371eaedb573a48f1e40c37cf5cb380c58a276 (patch)
tree790162124678f87e547d1d85f0aaacc33953ae51 /set.c
parent0ed529b72926570f22acc12c3451039df29e5468 (diff)
downloadmpfr-9ab371eaedb573a48f1e40c37cf5cb380c58a276.tar.gz
Add mpfr_set and mpfr_abs as real functions.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2883 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set.c')
-rw-r--r--set.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/set.c b/set.c
index 22699f0c7..8af4360f0 100644
--- a/set.c
+++ b/set.c
@@ -89,3 +89,17 @@ mpfr_set4 (mpfr_ptr a, mpfr_srcptr b, mp_rnd_t rnd_mode, int signb)
MPFR_SET_SIGN(a, signb);
MPFR_RET(inex);
}
+
+/* Set a to b (Define function which calls the macro) */
+int
+(mpfr_set) (mpfr_ptr a, mpfr_srcptr b, mp_rnd_t rnd_mode)
+{
+ return mpfr_set (a, b, rnd_mode);
+}
+
+/* Set a to |b| (Define function which calls the macro) */
+int
+(mpfr_abs) (mpfr_ptr a, mpfr_srcptr b, mp_rnd_t rnd_mode)
+{
+ return mpfr_abs (a, b, rnd_mode);
+}