diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-04-28 07:43:36 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-04-28 07:43:36 +0000 |
commit | 9ab371eaedb573a48f1e40c37cf5cb380c58a276 (patch) | |
tree | 790162124678f87e547d1d85f0aaacc33953ae51 /set.c | |
parent | 0ed529b72926570f22acc12c3451039df29e5468 (diff) | |
download | mpfr-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.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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); +} |