Commit Graph

122 Commits

Author SHA1 Message Date
Sylvain Pion dbb0048116 - Interval_base moved to Interval_base.h .
- Protect_FPU_rounding<> moved to Interval_arithmetic/_FPU.h .
- min and max std:: qualified for doubles.
- M$VC++ workaround for sign, compare, abs, square.
- Header cleanups.
2000-06-25 18:52:14 +00:00
Sylvain Pion 1bb23ded7e - Big rewrite... 2000-06-21 15:12:20 +00:00
Sylvain Pion dfea45953c - Protect_FPU_rounding object who's ctor/dtor do the rounding stuff. 2000-06-15 13:29:11 +00:00
Sylvain Pion 1baf6fc4a9 - Fixed Copyrigth dates, and re-added coordinator fields. 2000-06-13 15:01:03 +00:00
Sylvain Pion 6aba0f76fc - Fix CGAL_NTS issues. 2000-06-11 14:48:50 +00:00
Sylvain Pion 1089a61201 - CGAL_NTS and namespace stuff. 2000-06-10 23:48:00 +00:00
Sylvain Pion ce95b5ea17 - Use the relational operators provided by STL's <utility>.
- Removed coordinator field.
- Copyright 2000 added.
- Cleanup the CGAL_ms_sqrt workaround.
2000-05-19 15:15:44 +00:00
Sylvain Pion 332711b503 - Replaced enums FPU_cw_near... by macros CGAL_FE_TONEAREST... 1999-11-07 17:56:16 +00:00
Sylvain Pion 3b546cf703 - Replaced the macros CGAL_IA_SMALLEST and CGAL_IA_LARGEST by static data
members Smallest and Largest.
- Some formatting.
1999-11-07 15:58:32 +00:00
Sylvain Pion 69f1a3ae1d - Borland can't get IEEE comparisons working too... 1999-10-27 09:18:50 +00:00
Sylvain Pion 3a65f3ac51 - New flag CGAL_IA_NO_INLINE which switches operator* and operator/
from inline to static.
1999-10-22 16:16:57 +00:00
Sylvain Pion 4886003473 - Enable the sqrt workaround for __CYGWIN__ too. 1999-10-21 14:41:38 +00:00
Sylvain Pion 5d0622bd04 - Temporary hack for Lazy_exact_nt<>.
- Workaround for VC++ sqrt().
1999-10-19 11:34:23 +00:00
Sylvain Pion 75ee25d7cf - Formatting issues (moved some code around). 1999-10-14 16:08:29 +00:00
Sylvain Pion d500aa4702 - Got rid of bound_t. I finally think it's useless. 1999-10-14 15:57:00 +00:00
Sylvain Pion d221d636aa - Same thing with operator|| and operator&&.
- Added a special version of them for Interval_nt.
1999-10-14 15:52:07 +00:00
Sylvain Pion dcc5d3f8c2 - Same thing with the comparison operators. 1999-10-14 15:45:11 +00:00
Sylvain Pion badaaee857 - Put all operators as friends instead of members, this allows to get rid of
a particular version for (double, IA).
1999-10-14 15:36:30 +00:00
Sylvain Pion 3ecc8807d3 - Removed qualifier "throw(...)" of overlap_action().
It speeds things up on GCC.
1999-10-13 15:20:32 +00:00
Sylvain Pion 3bd062ef7f - is_valid() workaround for MipsPro. 1999-10-13 13:16:19 +00:00
Sylvain Pion 0a7b894180 - Removed convert_to<Interval_nt>(). This was useless, and it broke MipsPro. 1999-10-13 13:07:31 +00:00
Sylvain Pion 77d7716255 - Added parenthesis around double computation to prevent MipsPro from changing
expression computation order...
1999-10-13 12:13:10 +00:00
Sylvain Pion ca9404e8cb - Moved definition of an inline function before its call. 1999-10-12 18:06:42 +00:00
Sylvain Pion 8fd9efdc92 - Declare the friends inline, as they are (VC++ crashes at link). 1999-10-12 16:37:34 +00:00
Sylvain Pion e3f9f6d62d - Special version of is_vali() for M$, because this "compiler" is not able to
produce correct fp comparisons.
1999-10-12 16:10:50 +00:00
Sylvain Pion 0e4c84e04a - Put overlap_action() private. 1999-10-11 18:29:09 +00:00
Sylvain Pion 8ec0009198 - CGAL_IA_SMALLEST and CGAL_IA_LARGEST are now macros to static consts.
It's cleaner.  Macros will be definitely replaced once it's tested.
1999-10-11 18:21:28 +00:00
Sylvain Pion fab9eca9d9 - Removed operator*(IA, double) and operator/(IA, double). They made a lot of
code for something not really worth it, IMHO.
1999-10-11 17:55:49 +00:00
Sylvain Pion 2071706d22 - Introduce typedef bound_t, and use it instead of double where appropriate. 1999-10-11 17:33:15 +00:00
Sylvain Pion e852335b70 - Made lots of functions friend, so that we don't have to call .inf() and
.sup(), but instead directly access ._inf and ._sup.
- Changed all "0" to "0.0".
1999-10-11 17:28:17 +00:00
Sylvain Pion bbad316a7d - Removed useless parenthesis. 1999-10-10 16:33:50 +00:00
Sylvain Pion 96d1bac173 - Back out last change. 1999-10-10 13:45:48 +00:00
Sylvain Pion b2699fbf47 - Changed CGAL_CFG_NO_EXPLICIT_TEMPLATE_FUNCTION_ARGUMENT_SPECIFICATION to
CGAL_CFG_NO_PARTIAL_TEMPLATE_FUNCTION_ARGUMENT_SPECIFICATION.
1999-10-10 11:49:27 +00:00
Sylvain Pion 89f0fb5533 - Add "CGAL::" in the macros CGAL_IA_SMALLEST and CGAL_IA_LARGEST.
- Precise an error message.
- Optimize is_valid().
1999-10-07 18:12:05 +00:00
Sylvain Pion 380ab517f0 - Removed the "want_exceptions" stuff completely. 1999-08-23 12:51:41 +00:00
Sylvain Pion e9553717f0 - Added "static bool Interval_nt_advanced::want_exceptions = true".
- Updated overlap_action() to use it.
- Removed the ugly macros CGAL_IA_NO_EXCEPTION and CGAL_IA_NO_WARNING.
1999-08-05 17:29:58 +00:00
Sylvain Pion edcc8519bd - Changed overlap_action() to be static. 1999-08-05 17:13:43 +00:00
Sylvain Pion e35c3d7889 - Replaced:
#ifdef CGAL_IA_DEBUG
      CGAL_assertion(FPU_get_cw() == FPU_cw_up);
  #endif
 by:
      CGAL_expensive_assertion(FPU_empiric_test() == FPU_cw_up);
1999-08-01 13:20:53 +00:00
Sylvain Pion b4c82b2fc0 - Don't use the GNU extension of "Named return value" anymore. 1999-08-01 12:49:29 +00:00
Sylvain Pion 0190817cda - Use FPU_get_and_set_cw(). 1999-07-15 18:15:31 +00:00
Sylvain Pion 65853b8d3d - Remade unsafe_comparison a proper struct{}, no need for a typedef.
(undo the change from 1999/04/20)
1999-07-13 16:23:54 +00:00
Sylvain Pion 1a25f67f07 - Use CGAL_IA_STOP_CPROP() in the ctors. 1999-07-13 13:35:33 +00:00
Sylvain Pion e21bb0d4fd - Removed obsolete member functions {lower|upper}_bound(). 1999-06-27 15:55:24 +00:00
Sylvain Pion ad2a5f5bc4 - Make number_type_tag() take a const & as argument. 1999-06-23 14:48:20 +00:00
Sylvain Pion b3a2ef6ed9 - Moved operator<< and operator>> to libCGAL, no inline anymore. 1999-06-23 11:22:11 +00:00
Sylvain Pion bed589241e - sqrt(): moved CGAL_IA_FORCE_TO_DOUBLE() deeper. 1999-05-07 11:15:39 +00:00
Sylvain Pion 60588365dc - Moved operator/ (double, Interval_nt), because could not be inlined. 1999-05-04 16:03:55 +00:00
Sylvain Pion 308e05b1ec - Added (currently disabled) code to stop constant propagation inside the
constructors.
1999-05-04 15:51:33 +00:00
Sylvain Pion b08fa90fda - Removed operator+ (double) and operator- (double).
- Added some rounding mode check (when CGAL_IA_DEBUG) where needed.
- Added some operator?? (double, Interval_nt) so that the rounding mode is ok.
1999-05-04 12:08:33 +00:00
Sylvain Pion 947f394b1c - Fixed a bug in the division code !!!???!!!
- Added operator/ (const double d, const Interval_nt & t).
- Removed useless () around boolean tests.
1999-05-04 09:38:11 +00:00