Enforce IEEE double precision and to nearest before using modular arithmetic

This commit is contained in:
Michael Hemmer 2008-12-10 10:43:17 +00:00
parent 85ee2f262f
commit 7d286cf414
2 changed files with 6 additions and 4 deletions

View File

@ -74,6 +74,10 @@ void test_AT(){
CGAL::Test_Pol::test_multiple_dimensions(PT());
}
{
// Enforce IEEE double precision and to nearest before
// using modular arithmetic
CGAL::Protect_FPU_rounding<true> pfr(CGAL_FE_TONEAREST);
typedef CGAL::Polynomial< CGAL::Residue > Poly;
typedef CGAL::Polynomial_traits_d<Poly> PT;
std::cerr << std::endl;
@ -83,8 +87,6 @@ void test_AT(){
std::cerr <<
"----------------------------------------------------------------------"
<< std::endl;
// Enforce IEEE double precision before using modular arithmetic
CGAL::Set_ieee_double_precision pfr;
CGAL::Test_Pol::test_multiple_dimensions(PT());
}
}

View File

@ -105,8 +105,8 @@ int main(){
test_resultant<E2Polynomial_1>();
// Enforce IEEE double precision before using modular arithmetic
CGAL::FPU_set_cw(CGAL_FE_TONEAREST);
// Enforce IEEE double precision and to nearest before using modular arithmetic
CGAL::Protect_FPU_rounding<true> pfr2(CGAL_FE_TONEAREST);
typedef CGAL::Polynomial<CGAL::Residue> MPolynomial_1;
typedef CGAL::Polynomial<MPolynomial_1> MPolynomial_2;