Commit Graph

73 Commits

Author SHA1 Message Date
Clement Jamin b8922fdd21 Remove CGAL_EXPORT since it's just a constant now 2016-03-10 16:12:15 +01:00
Clement Jamin f9b2a01e81 Move the now-const "primes" variable to header file
And remove "extern" on the way
2016-03-10 11:41:32 +01:00
Andreas Fabri 4fec754ef8 put static into the macro and rename it 2015-12-02 20:40:15 +01:00
Andreas Fabri 246219c7b9 bug fix: got 1/x wrong 2015-11-10 08:50:01 +01:00
Andreas Fabri 6b2c4dd7c6 Merge branch 'CGLAL-thread_local_storage-GF-old' into CGLAL-thread_local_storage-GF 2015-11-09 14:26:42 +01:00
Clement Jamin 97d8aaa634 Fix merge error from March 2015-10-01 17:21:38 +02:00
Clement Jamin 1a083a41fb Fix merge error 2015-10-01 14:56:12 +02:00
Clement Jamin 31e8415983 Merge branch 'CGLAL-thread_local_storage-GF-old' into CGLAL-thread_local_storage-GF 2015-10-01 14:51:09 +02:00
Andreas Fabri 3d4a1be429 WIP with Clement 2015-10-01 09:47:47 +02:00
Andreas Fabri 0d70d7b1ce do not write 'static' in the macro so that we can use the macro also for a definition 2015-09-14 10:17:22 +02:00
Andreas Fabri ea612e9645 Improved macros to avoid #if #else where we want to use TLS
The Residue.cpp file still needs simplification
2015-09-11 18:01:51 +02:00
Andreas Fabri a14cf913e9 WIP: In Lazy.h we now have a single macro for boost and c++11 thread 2015-09-11 14:54:11 +02:00
Andreas Fabri 220651bc88 Use CGAL_THREAD_LOCAL as thread_local only comes with VC201 2015-09-04 18:09:50 +02:00
Guillaume Damiand 13de3265b6 Cleanup Residue_type.h for cgal header only 2015-06-09 16:27:33 +02:00
Guillaume Damiand 6b3fbfb5ef io static methods 2015-03-16 17:14:56 +01:00
Guillaume Damiand 9c78897ba5 Merge branch 'CGAL_headers_only-gdamiand_cjamin-old' into CGAL_headers_only-gdamiand_cjamin 2015-03-16 14:00:43 +01:00
Alexander Kobel feb4298699 update docstring about largest/initial prime in prime list 2014-11-24 10:53:16 +01:00
Alexander Kobel 11c9deb31b add const for prime list 2014-11-24 10:52:38 +01:00
Alexander Kobel fb93886709 add constructor for Residue from long long 2014-11-24 10:48:20 +01:00
Guillaume Damiand 87968c0b6e Keep non const version for non header version (TRANSLATION, ROTATION, SCALING, REFLECTION, IDENTITY and primes) 2014-11-15 18:23:55 +01:00
Guillaume Damiand f7cb6fc7e2 add a missing impl file 2014-11-14 17:28:42 +01:00
Guillaume Damiand ef550fd3bb Ok for first version. 2014-11-14 17:22:06 +01:00
Guillaume Damiand b92bcae1a9 Header only for Residue_type.cpp 2014-11-14 14:53:54 +01:00
Guillaume Damiand d3452cff45 Version header only for primes.cpp 2014-11-14 14:33:31 +01:00
Alexander Kobel 70d264be3a add precondition arg != 0 for modular inversion
replaces
  https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Modular_arithmetic_div_by_zero
2014-02-11 10:14:20 +01:00
Alexander Kobel 8ea840d722 fix Residue constructor from long int
see feature description, change 2.2:
  https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Modular_arithmetic_fixes
2014-02-11 10:14:20 +01:00
Laurent Rineau a04891ff93 WARNFIX: fix some warnings triggered by -Wconversion on g++ 2012-08-09 16:06:54 +00:00
Laurent Rineau db194534c7 First big patch to fix -Wunused-local-typedefs
-Wunused-local-typedefs is a new warning flag of gcc-4.7, and it will enabled
 by -Wall since gcc-4.8 (not yet released).

The fix is a big set of removals of unused typedefs (or comments, or moves,
depending on the context).
2012-08-01 13:29:16 +00:00
Sébastien Loriot 91a5327fa8 change LGPLv2 -> LGPLv3 2011-10-10 13:48:25 +00:00
Andreas Fabri cbfe32ce37 Add declspecs for Visual C++ so that we can build dlls 2011-10-05 19:12:23 +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
Michael Hemmer f01f585049 fix license header 2010-02-01 12:19:55 +00:00
Laurent Rineau 83912b2952 Massive fix of svn:keywords properties, and $URL$ keyword. 2009-10-20 08:59:26 +00:00
Sylvain Pion 8573fe26ce Rename CGALi to internal. 2009-08-24 17:10:04 +00:00
Michael Hemmer 7f23bad6ff get_value returns the unique representative within the range [-p/2,p/2] 2008-12-10 12:53:12 +00:00
Michael Hemmer 1aabe3b9e9 Residue needs ieee double precion as well as rounding mode to nearest
use CGAL::Protect_FPU_rounding<true> pfr(CGAL_FE_TONEAREST)
2008-12-10 10:19:44 +00:00
Michael Hemmer 119f4ecdda rm precondition as it relies on side effects of Set_ieee_double_precision
that are not present on all platforms, ie, it does not set rounding mode to
nearest on Leopard (Mac)
2008-12-09 12:39:32 +00:00
Sylvain Pion af48d47506 Replace Protect_FPU_rounding<true> pfr(CGAL_FE_TONEAREST)
by Set_ieee_double_precision.
2008-12-03 21:42:28 +00:00
Michael Hemmer 65d95e3355 remove warning for i686_Linux-2.6_CC-5.90_F7 2008-12-01 12:46:40 +00:00
Michael Hemmer 819d64b18c added assertion for FPU rounding mode 2008-10-21 16:15:19 +00:00
Andreas Fabri 5a52575d39 Remove force_ieee_double_precision(); as this is a global side effect; TODO: Add preconditions in the operations which require this setting 2008-10-17 13:14:08 +00:00
Michael Hemmer 63cdada31a fixed include problems 2008-09-25 13:24:05 +00:00
Michael Hemmer b64ff940c8 added License header 2008-09-17 07:47:12 +00:00
Michael Hemmer 909c7ed95c made CGAL::Residue thread safe using
boost thread_specific_ptr from <boost/thread/tss.hpp>
2008-09-16 07:31:18 +00:00
Michael Hemmer cf7e170ec8 Modular_traits::Modular_image_inv -> Modular_image_representative 2008-09-09 12:54:08 +00:00
Michael Hemmer 026d2e57db added missing includes/fwd 2008-09-09 08:30:18 +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 d0722885cd class name CGAL::Modular -> CGAL::Residue 2008-08-04 14:50:05 +00:00
Michael Hemmer 6d8d2e9748 and its types should be public .-) 2008-04-29 20:18:47 +00:00
Michael Hemmer 1eb1824f3d Algebraic_structure_traits is a class (not a struct) 2008-04-29 14:04:41 +00:00