diff options
author | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-20 16:35:55 +0000 |
---|---|---|
committer | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-12-20 16:35:55 +0000 |
commit | 7fbe0fe848daeb9deb4df4e78fcf4ec847bb39cf (patch) | |
tree | 2846f084e96e899d72cfd45038443018cc4c8a0e /rnd_mode.c | |
parent | 2eae1073f94caecb1a4838c4075845847f3ab965 (diff) | |
download | mpfr-7fbe0fe848daeb9deb4df4e78fcf4ec847bb39cf.tar.gz |
Added support for PPC/Linux
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@906 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'rnd_mode.c')
-rw-r--r-- | rnd_mode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rnd_mode.c b/rnd_mode.c index 9e5b37c32..dda40b5b4 100644 --- a/rnd_mode.c +++ b/rnd_mode.c @@ -83,6 +83,12 @@ char *out; #define TOINFP ieee_flags("set","direction","positive",&out) #define TONEAREST ieee_flags("set","direction","nearest",&out) #define TOINFM ieee_flags("set","direction","negative",&out) +#elif (defined (__powerpc__) && defined(linux)) +#include <fpu_control.h> +#define TOZERO _FPU_SETCW(_FPU_RC_ZERO) +#define TOINFP _FPU_SETCW(_FPU_RC_UP) +#define TOINFM _FPU_SETCW(_FPU_RC_DOWN) +#define TONEAREST _FPU_SETCW(_FPU_RC_NEAREST) #elif (defined (__i386__) || defined (__i486__) || defined (linux)) #ifdef __CYGWIN32__ /* no fpu_control.h under Cygnus */ #define _FPU_EXTENDED 0x300 |