mirror of https://github.com/CGAL/cgal
- Fix.
This commit is contained in:
parent
8acf1f83a3
commit
e8a2915065
|
|
@ -1,5 +1,9 @@
|
|||
Changes done to the Interval Arithmetic package.
|
||||
|
||||
Version 4.65 on ? February 2001
|
||||
- Kernel_checker
|
||||
- Filtered_kernel and Filtered_predicate.
|
||||
|
||||
Version 4.64 on 1 February 2001
|
||||
- MP_Float.
|
||||
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ CGAL_BEGIN_NAMESPACE
|
|||
// - Potential caching is done at the Point_2 level.
|
||||
// - The operators() should probably NOT be inline.
|
||||
|
||||
// Simple function to check if 2 arguments have the same type.
|
||||
#if 0
|
||||
// Simple function to check if 2 arguments have the same type.
|
||||
template < class T >
|
||||
inline void
|
||||
same_type_checker(const T&, const T&)
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ public:
|
|||
// Then, compute the limbs.
|
||||
v.resize(limbs_per_double);
|
||||
for (int i = limbs_per_double - 1; i > 0; i--) {
|
||||
v[i] = (limb) std::rint(d);
|
||||
v[i] = (limb) ::rint(d);
|
||||
if (d-v[i] >= double(base/2-1)/(base-1))
|
||||
v[i]++;
|
||||
d -= v[i];
|
||||
|
|
@ -139,7 +139,7 @@ public:
|
|||
|
||||
remove_trailing_zeros();
|
||||
|
||||
CGAL_expensive_assertion(d == (limb) std::rint(d));
|
||||
CGAL_expensive_assertion(d == (limb) ::rint(d));
|
||||
CGAL_assertion(v.back() != 0);
|
||||
CGAL_expensive_assertion(CGAL::to_double(*this) == bak);
|
||||
}
|
||||
|
|
@ -513,7 +513,7 @@ operator<< (std::ostream & os, const MP_Float &b)
|
|||
if (exp != 0)
|
||||
os << " * 2^" << exp;
|
||||
|
||||
approx += std::ldexp(*i, exp);
|
||||
approx += std::ldexp(double(*i), exp);
|
||||
|
||||
exp += MP_Float::log_limb;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,12 +13,13 @@ include $(CGAL_MAKEFILE)
|
|||
# -L$(GMP_LIB_DIR) -lgmp -lm \
|
||||
|
||||
CXXFLAGS = \
|
||||
-I../../../Kernel_basic/include \
|
||||
-I../../../Cartesian_kernel/include \
|
||||
-I../../../Number_types/include \
|
||||
-I../../include \
|
||||
$(TESTSUITE_CXXFLAGS) \
|
||||
$(CGAL_CXXFLAGS) \
|
||||
-O2 -mcpu=pentiumpro -march=pentiumpro -fstrict-aliasing -W -Wall # -pedantic
|
||||
-g # -O2 -mcpu=pentiumpro -march=pentiumpro -fstrict-aliasing -W -Wall # -pedantic
|
||||
# -g -W -Wall -Winline
|
||||
# -O2 -mcpu=pentiumpro -march=pentiumpro -W -Wall -DLOOPS=10000000
|
||||
# -O2 -W -Winline -Wunused -malign-double
|
||||
|
|
|
|||
Loading…
Reference in New Issue