Commit Graph

589 Commits

Author SHA1 Message Date
Laurent Rineau 9026e8d8ce Fix Andreas revision 46848 (one want <LEDA/numbers/interval.h> be included
even if _MSC_VER is not defined.
2008-11-12 16:53:12 +00:00
Andreas Fabri 1509b91904 We have to undef ERROR in case it is defined, e.g. in <windows.h> 2008-11-12 15:47:18 +00:00
Michael Hemmer 9e018b0a22 rm warning for -DCGAL_NDEBUG 2008-10-30 10:10:21 +00:00
Michael Hemmer da3e09e9c0 use CGAL::Protect_FPU_rounding<true> pfr(CGAL_FE_UPWARD)
for CGAL::Interval_nt<false>
2008-10-27 08:08:21 +00:00
Andreas Fabri 2758efd609 Backup and restore rounding mode to avoid error message 2008-10-25 09:38:33 +00:00
Laurent Rineau b80958f958 Use assertion instead of warning. 2008-10-23 22:10:06 +00:00
Laurent Rineau d256a634c3 Add src/CGAL/test_FPU_rounding_mode.cpp
That file creates a global (static const) object that:
  - at its creation (start of the program), it stores the FPU rounding mode,
  - at its destruction (end of the program), it emits a CGAL_warning is the
current rounding mode is different from the stored one.

That will permit to track if all CGAL kernel code restore the FPU rounding
mode correctly (needed for some CGAL user and GeometryFactory customers).
2008-10-15 12:53:41 +00:00
Andreas Fabri 4ffe6b9657 Add illustration 2008-10-15 07:43:06 +00:00
Andreas Fabri 6bdf362774 quit down VC++ warning 2008-10-14 07:22:04 +00:00
Andreas Fabri f6ebf5e5f7 Suppress VC warning 2008-10-13 13:46:35 +00:00
Michael Hemmer 8a1b24a1f4 added test for implicit interoperablity 2008-10-13 12:34:31 +00:00
Michael Hemmer f43c6746a0 rm ifdef CGAL_USE_GMP its a precond anyway 2008-10-13 12:31:45 +00:00
Sylvain Pion 4aa1cb057a Remove my email adress from header files. 2008-10-11 20:21:08 +00:00
Michael Hemmer 2c8cd4f7b3 added precond d!=0 for constructor 2008-10-06 11:48:52 +00:00
Michael Hemmer 2b76291e2a fix in interoperablity with int and NT 2008-10-06 10:07:29 +00:00
Michael Hemmer a6d338af47 improved simplify funciton: sets is_extended flag 2008-10-06 08:32:59 +00:00
Pedro Machado Manhaes de Castro 5dfed6f7f2 More accuracy on the to_double of Root_of_2 2008-09-29 18:20:02 +00:00
Michael Hemmer 88848c145b moved Modular_traits for int and long from Modular_traits.h 2008-09-25 13:41:17 +00:00
Michael Hemmer 54ea4a46a9 types that have a demonintor are not Modularizable
denominator could become zero mod prime
2008-09-25 09:13:21 +00:00
Michael Hemmer c78b05b739 rename Real_embeddable_traits::Sign Sgn
added RET::Boolean, RET::Sign, RET::Comparison_result
2008-09-18 15:35:55 +00:00
Michael Hemmer cf6fe3a5ec added public type Boolean to Algebraic_structure_traits 2008-09-18 13:53:47 +00:00
Sylvain Pion d9595d3b94 Add CGAL_assertion(is_finite(d)) in some number types constructors from double. 2008-09-17 15:53:27 +00:00
Sylvain Pion 0f03fe4677 Remove useless is_valid() test, as it's redundant with is_finite(). 2008-09-17 15:24:57 +00:00
Michael Hemmer 5e015a95b2 added test for convert to bfi 2008-09-11 08:54:30 +00:00
Michael Hemmer 655514b33c added a special cache for efficient conversion of
Sqrt_extension to Bigfloat_interval, disabled by default
2008-09-11 08:54:12 +00:00
Andreas Fabri 1721268112 VC++ doesn't like template parameters which are at the same time a typename in a derived class 2008-09-10 20:48:51 +00:00
Michael Hemmer cf7e170ec8 Modular_traits::Modular_image_inv -> Modular_image_representative 2008-09-09 12:54:08 +00:00
Michael Hemmer 3d75f7fea6 added Modular_traits for several types 2008-09-09 11:57:05 +00:00
Michael Hemmer 235ca346ed added missing include 2008-09-09 11:52:52 +00:00
Michael Hemmer 09a0e17c4b use CORE to test NT_checker, since LEDA is currently not in testsuite 2008-09-09 11:51:41 +00:00
Michael Hemmer bfea282784 fixed cut&paste bug in Is_finite 2008-09-09 11:47:53 +00:00
Sylvain Pion a0be560caa New profiling tool : Profile_branch_counter, that improves the display
of failure/calls ratios.  With the corresponding macro CGAL_BRANCH_PROFILER().
2008-09-08 09:52:37 +00:00
Sylvain Pion 419f46f919 Remove CGAL_CFG_COMMA_BUG and its workaronds, as we don't support g++ 3.3 anymore. 2008-09-08 09:33:02 +00:00
Sylvain Pion 15c7353407 Pick Gmpq if available, instead of Quotient<MP_Float>, as the corresponding
"exact number type" for built-in types.
2008-09-07 13:46:20 +00:00
Sylvain Pion 8865f7ea4f Use C++0x rvalue references in Object, Handle_for, MP_Float and Quotient. 2008-08-27 14:19:18 +00:00
Sylvain Pion e7dd28125f Add explicit static_cast to fix error with gcc-4.4 in -std=c++0x mode. 2008-08-26 14:24:07 +00:00
Sylvain Pion 81c0e4510b Some updates (and test for the commit mails). 2008-08-25 18:36:42 +00:00
Sylvain Pion 85e80686d4 Fix "unused variable" warnings in CGAL_NDEBUG mode. 2008-08-20 09:06:34 +00:00
Sylvain Pion 4606422089 Capitalize protect macro names. 2008-08-20 08:52:46 +00:00
Sylvain Pion b7cfe82eb9 Add parens to remove GCC warnings 2008-08-19 09:46:56 +00:00
Sylvain Pion 1df108c0d7 Replace some CGAL_assertion(A && B) by CGAL_assertion(A & B).
In general this is safe: B would not be evaluated only if A would be false,
  that is, when the assertion would be raised anyway.  So what worse can happen
  in evaluating B than an assertion failure.  Not much I guess.
  And for Uncertain<> conditions, it is preferable to use & instead of &&.
  So I change some of these to see if it might become a global rule.
2008-08-12 14:59:20 +00:00
Sylvain Pion 5aae6c851a Rename CGAL_kernel_precondition to CGAL_precondition. 2008-08-12 13:56:33 +00:00
Sylvain Pion 9d989cfc46 Shuffle macro tests to avoid unreadable code duplication. 2008-08-12 13:09:51 +00:00
Sylvain Pion bf0491f96e CGAL_assertion now already includes possibly(), so no need to add it manually anymore. 2008-08-12 08:35:42 +00:00
Sylvain Pion 43144bb78f Rename CGAL_NUMBER_Type_BASIC_H to CGAL_NUMBER_TYPE_BASIC_H. 2008-08-11 12:31:35 +00:00
Sylvain Pion aff1bf74aa Replace CGAL::Interval_nt<>::number_of_failures() by a CGAL_PROFILER() counter. 2008-08-06 13:16:04 +00:00
Michael Hemmer 182c550580 warp up RealEbeddable_traits, i.e., mv RET_base into internal namespace 2008-08-05 13:42:15 +00:00
Michael Hemmer cff191916d changed name: CGAL::Modular -> CGAL::Residue
chnaged filenames accordingly 
changed: Modular_traits::Modular_NT -> Modular_traits::Residue_type
2008-08-04 15:09:13 +00:00
Michael Hemmer d2ee3a1eb3 added test of double interoperability in arithmetic operators. 2008-08-01 12:42:01 +00:00
Michael Hemmer f4f2d820a4 use split double in operator +=, etc. 2008-07-31 14:07:29 +00:00