mirror of https://github.com/CGAL/cgal
Enforce IEEE double precision and to nearest before using modular arithmetic
This commit is contained in:
parent
85ee2f262f
commit
7d286cf414
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue