Commit Graph

769 Commits

Author SHA1 Message Date
Luis Peñaranda 7b5d7c4907 eliminated VC10 warning in Gmpfr_type.h 2010-06-22 14:44:17 +00:00
Luis Peñaranda 4f61a6457f minor changes to make Gmpfr work with MPFR 3.0 2010-06-21 15:06:07 +00:00
Andreas Fabri 133555a797 Add missing file (Rev 56916) 2010-06-21 13:36:47 +00:00
Laurent Rineau 5069faed6b Revert revision 56916 in trunk/Number_types/test (should not have been
commited).
2010-06-21 13:10:52 +00:00
Andreas Fabri a654782c9d No warning for gmp.h
(Update: this commit is incomplete. The missing file <CGAL/gmp.h> is added
in revision 56920. --Laurent Rineau)
2010-06-21 13:07:07 +00:00
Luis Peñaranda caebea77fa avoid some VC10 warnings in Gmpfr_type.h 2010-06-21 09:50:46 +00:00
Laurent Rineau 8679a3911e Merged revisions 56835,56864-56870,56876,56895-56897 via svnmerge from
svn+ssh://lrineau@scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.6-branch

........
  r56835 | lrineau | 2010-06-17 12:56:52 +0200 (Thu, 17 Jun 2010) | 6 lines
  
  Remove the constructor Gmpfr(long double) on Microsoft Visual C++. A big
  comment in the source code explains why.
  
  The testsuite will check that the construction of Gmpfr from a long double
  on MSVC still works and produces the right Gmpfr.
........
  r56864 | afabri | 2010-06-18 11:04:47 +0200 (Fri, 18 Jun 2010) | 1 line
  
  Use tie from boost::
........
  r56865 | afabri | 2010-06-18 11:11:49 +0200 (Fri, 18 Jun 2010) | 1 line
  
  Use bind from boost::
........
  r56866 | afabri | 2010-06-18 11:38:50 +0200 (Fri, 18 Jun 2010) | 1 line
  
  Use bind from boost:: (detected in Mesh_3 VC10 testsuite)
........
  r56867 | lrineau | 2010-06-18 11:39:24 +0200 (Fri, 18 Jun 2010) | 3 lines
  
  cmake-2.8.2rc2 is out.
  /bigobj is necessary
........
  r56868 | afabri | 2010-06-18 11:52:37 +0200 (Fri, 18 Jun 2010) | 1 line
  
  Add #include <fstream>
........
  r56869 | afabri | 2010-06-18 11:55:33 +0200 (Fri, 18 Jun 2010) | 1 line
  
  Shorten filename as with path it exceeds easily 256 letters which poor Visual C++ can't handle
........
  r56870 | afabri | 2010-06-18 12:24:30 +0200 (Fri, 18 Jun 2010) | 1 line
  
  Use tie from boost::
........
  r56876 | lrineau | 2010-06-18 16:40:36 +0200 (Fri, 18 Jun 2010) | 3 lines
  
  New try to fix the issue of Gmpfr(long double) with MSVC and libmpfr-1.dll
  compiled by Mingw.
........
  r56895 | lrineau | 2010-06-20 23:16:40 +0200 (Sun, 20 Jun 2010) | 3 lines
  
  Using boost::bind is not sufficient" "bind" without qualifier was
  ambiguous, according to MSVC2010, with std::bind (from C++0x).
........
  r56896 | lrineau | 2010-06-20 23:18:29 +0200 (Sun, 20 Jun 2010) | 3 lines
  
  Qualify "bind" with "boost::", to avoid the ambiguity (according to
  MSVC2010), with std::bind (C++0x).
........
  r56897 | lrineau | 2010-06-20 23:19:17 +0200 (Sun, 20 Jun 2010) | 2 lines
  
  Stupid typo!
........
2010-06-20 21:48:20 +00:00
Michael Kerber 4377bda5fe Introduced cast-to-void to avoid compiler warnings 2010-06-18 15:10:29 +00:00
Luis Peñaranda 003aeddad1 fixed bug in expensive assertion code 2010-06-18 13:38:59 +00:00
Sébastien Loriot 62c6b7d582 license bug 2010-06-16 08:42:21 +00:00
Sébastien Loriot b53e23c906 add forward declaration for Quotient 2010-06-16 08:22:01 +00:00
Michael Hemmer 181af0419d added missing include 2010-06-14 08:34:32 +00:00
Michael Hemmer d15cc947a4 relax rounding conditions in to_interval 2010-06-11 07:53:37 +00:00
Sébastien Loriot 52317dd49f add python script (replace_CGAL_NAMESPACE.py) to replace CGAL_BEGIN_NAMESPACE and CGAL_END_NAMESPACE
by namespace CGAL { and } //namespace CGAL. in all .h and .cpp files
in a directory.
Apply it to all packages in the trunk
Remove macro definition from the config.h file.
2010-06-09 07:37:13 +00:00
Luis Peñaranda 2d9d876611 removed useless calls to mpq_canonicalize in Gmpq_type.h, and added a
CGAL:: to avoid confusion in Gmpfi.h
2010-06-07 09:24:10 +00:00
Marc Glisse d3d5da387e Replace __gmp_expr with mp*_class where appropriate. 2010-05-25 19:58:27 +00:00
Michael Hemmer 1ab0e40c06 fix corner case in round, where the float is representing
a power of 2 in the mantissa
2010-05-11 11:41:12 +00:00
Michael Hemmer 8ab715005c rm useless def of CGAL::in for Interval_nt in test file 2010-05-11 10:05:19 +00:00
Luis Peñaranda 1c2f4582c0 Some changes in the Gmpfi and Gmpfr classes:
-eliminated useless 'inline' keywords;
-wrapped to 80 columns;
-added extra assertions in functions;
-eliminated the reference counting from Gmpfi, since the reference counted
endpoints do the job;
-minor details in documentation.
2010-05-06 15:28:17 +00:00
Michael Hemmer 65d67a3591 move Wang traits spec into Sqrt_extension 2010-05-05 16:04:03 +00:00
Michael Hemmer d49fb7e465 mv spec code for Sqrt_extension / convert_to_bfi to Sqrt_extension 2010-05-05 15:05:18 +00:00
Michael Hemmer 0d2cb98390 move Get_arithmetic_kernel specializations into correct packages 2010-05-05 14:19:26 +00:00
Michael Hemmer 8f5307aa49 added missing result_type 2010-05-03 12:23:24 +00:00
Michael Hemmer d4ef4141a1 CGAL::round -> CGAL::internal::round since just for CORE::BigFloat 2010-04-26 07:22:59 +00:00
Luis Peñaranda 9bcca2ec41 just avoided compiler warning "argc and argv unused" 2010-04-23 09:13:54 +00:00
Michael Kerber 7b93a2c07e --pdeantic does not like semicolons after macros 2010-04-21 21:49:30 +00:00
Fernando Cacciola 18bf09804d CORRECTED fixed const correctness for update_exact() 2010-03-30 17:15:45 +00:00
Michael Hemmer 324d701903 added missing interoperable operator in Compare 2010-03-26 12:59:35 +00:00
Luis Peñaranda f64425e78b added #ifdef CGAL_USE_MPFI to avoid reds in the testsuite 2010-03-20 14:17:12 +00:00
Luis Peñaranda 609e787fe0 removed version check hack from test/Number_types/CMakeLists.txt 2010-03-18 11:32:36 +00:00
Michael Hemmer 2fbe557757 use macro \exacus 2010-03-16 14:57:09 +00:00
Luis Peñaranda 94f3caaf94 changed all appearances of MPFI and MPFI by \mpfr and \mpfi 2010-03-16 14:02:58 +00:00
Michael Hemmer 7515cd7436 minor fix 2010-03-11 14:02:48 +00:00
Michael Hemmer 679477b283 minor fix 2010-03-11 13:53:24 +00:00
Luis Peñaranda 2a8b15b4fa added 'static' keyword to Gmpfi default precision variables 2010-03-09 16:42:20 +00:00
Luis Peñaranda 1064605742 added missing 'inline' keyword to Gmpfi::init_precision_for_thread() 2010-03-09 15:56:53 +00:00
Luis Peñaranda 3775b22b2f corrected bug in constructor Gmpfr(mpfr_srcptr), only used internally by
Gmpfr and Gmpfi
2010-03-09 13:45:13 +00:00
Michael Hemmer 3d8d9e6e96 added bug report related to problems in Gmpfr::to_integer_exp 2010-03-09 10:08:13 +00:00
Eric Berberich f5a3cd5bc9 removed some debug output on std::cout 2010-03-07 19:28:27 +00:00
Michael Hemmer 3c572bbaa3 fix macro name 2010-03-02 10:48:48 +00:00
Luis Peñaranda 0a5d070e9f fixed broken \verb, which was terminated by an end of line 2010-03-02 08:14:39 +00:00
Michael Hemmer 8d563e7620 added missing precond in doc 2010-03-02 08:07:35 +00:00
Luis Peñaranda 403661c074 changed macro names reported by check_macro_names script 2010-03-01 14:16:54 +00:00
Luis Peñaranda b869316bab Fixed bug in Gmpfr(Gmpz) when constructing from small integers. Changed
assertions in Gmpfr::to_integer_exp in order to avoid eventual inexact
divisions.
2010-02-24 08:37:50 +00:00
Luis Peñaranda ba2792244d moved the Coercion_traits.cpp build line after the MPFI configuration 2010-02-23 09:41:26 +00:00
Michael Hemmer 91ad5bda02 minor fix, default kernel may be GMP kernel 2010-02-22 16:32:22 +00:00
Luis Peñaranda e75225cecb Changed Gmpfr constructors such that the conversion is always exact and
updated documentation.
Added constructor test to the Gmpfr testsuite.
Corrected two bugs in constructor Gmpq(Gmpfr): one when the exponent is
positive and one when the exponent is negative.
2010-02-21 16:24:52 +00:00
Michael Hemmer 9a9fe133bd add test BigFloat to Rational (for LEDA/GMP)
for CORE there is not BigFloat defined
2010-02-19 15:40:56 +00:00
Luis Peñaranda 15bed06ec7 Added operators Gmpq/double. Added tests of arithmetic operators between
Gmpq and other GMP types. Fixed constructor Gmpfi(Gmpq).
2010-02-19 15:20:16 +00:00
Luis Peñaranda abcfab4ee3 Added constructor Gmpq(Gmpfr) and eliminated constructor Gmpfr(Gmpq)
because it is not exact. Replaced all the operations between Gmpfr and Gmpq
that returned a Gmpfr by the same operations returning a Gmpq (these new
operations are exact). Changed coercion traits (I hope) accordingly.
2010-02-19 11:52:49 +00:00