summaryrefslogtreecommitdiff
path: root/rnd_mode.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-05-04 12:23:28 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2000-05-04 12:23:28 +0000
commit4f6f09f77e7f2e8fab095137f6c383ae414b31c3 (patch)
treed51ed61fb00cbe711fec9e60d25773ff1f685313 /rnd_mode.c
parent9bea475d8759bbb2bf86a1dda0267be5cb056df5 (diff)
downloadmpfr-4f6f09f77e7f2e8fab095137f6c383ae414b31c3.tar.gz
updated for AIX (thanks to Gerardo Ballabio)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@497 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'rnd_mode.c')
-rw-r--r--rnd_mode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rnd_mode.c b/rnd_mode.c
index f3e0f432b..a8353dd74 100644
--- a/rnd_mode.c
+++ b/rnd_mode.c
@@ -61,6 +61,11 @@ extern int swapRM();
#define TONEAREST write_rnd(FP_RND_RN)
#define TOINFM write_rnd(FP_RND_RM)
#elif AIX
+/* those values should be defined in float.h but strangely are not */
+#define FP_RND_RZ 0
+#define FP_RND_RN 1
+#define FP_RND_RP 2
+#define FP_RND_RM 3
#include <float.h>
#define TOZERO fp_swap_rnd(FP_RND_RZ)
#define TOINFP fp_swap_rnd(FP_RND_RP)