- Added KCC/Sun support.

This commit is contained in:
Sylvain Pion 2000-02-17 10:02:05 +00:00
parent 2ed22bedcd
commit b4e9daf75f
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
Changes done to the Interval Arithmetic package.
Version 4.40 on 17 February 2000
- Added KCC/Sun support (by Stefan).
Version 4.39 on 22 November 1999
- Fix test-suite bug detected by CHECK_EXACTNESS (global intervals initilized
with incorrect rounding mode).

View File

@ -71,7 +71,7 @@ inline double IA_force_to_double(const double x)
#ifdef __linux__
#include <fpu_control.h>
#elif defined __SUNPRO_CC
#elif defined __SUNPRO_CC || (defined __KCC && defined __sun)
#include <ieeefp.h>
#elif defined __osf || defined __osf__ || defined __BORLANDC__
#include <float.h>
@ -118,7 +118,7 @@ typedef fpu_control_t FPU_CW_t;
#define CGAL_FE_UPWARD (_FPU_RC_UP | _FPU_DEFAULT)
#define CGAL_FE_DOWNWARD (_FPU_RC_DOWN | _FPU_DEFAULT)
#elif defined __SUNPRO_CC
#elif defined __SUNPRO_CC || (defined __KCC && defined __sun)
#define CGAL_IA_SETFPCW(CW) fpsetround(fp_rnd(CW))
#define CGAL_IA_GETFPCW(CW) CW = fpgetround()
typedef unsigned int FPU_CW_t;