Commit Graph

1157 Commits

Author SHA1 Message Date
Marc Glisse 50aba6f3dc Microsoft needs to do something about their warnings... 2014-03-15 10:00:57 +01:00
Marc Glisse e25a284796 VC and min/max :-( 2014-03-15 09:41:47 +01:00
Marc Glisse 5c7ca614bf On win64, eigen wants to convert __int64 to whatever number type we are using. 2014-03-14 15:02:17 +01:00
Marc Glisse 39f1c4f589 At least on windows with the latest eigen, dummy_precision seems
necessary.
2014-03-14 14:43:32 +01:00
Marc Glisse 1241b2f14f Use boost::int128_type instead of __int128. This makes __extension__
useless, hence removed.
2014-03-13 17:06:43 +01:00
Marc Glisse b257e85427 Rework test for __int128 availability. 2014-03-13 16:50:22 +01:00
Marc Glisse 6571a80fdd fix pedantic warnings. 2014-03-13 13:21:21 +01:00
Marc Glisse 3168c851a1 Merge branch 'Kernel_d-rewrite-glisse-old' into Kernel_d-rewrite-glisse
Conflicts:
	Kernel_d/doc_tex/Kernel_d/kernel_representation_d.tex
	Kernel_d/doc_tex/Kernel_d_ref/Homogeneous_d.tex
	Kernel_d/doc_tex/Kernel_d_ref/Kernel.tex
	Kernel_d/doc_tex/Kernel_d_ref/main.tex

Resolved by dropping those files.
2014-03-12 12:38:08 +01:00
Laurent Rineau 367314623d Add a script to detect wrong permissions, and fix permissions
The script uses zsh, and lists regular files that have the
'executable' permission.

At the same time, I fix the permissions of several files.
2014-02-06 18:49:09 +01:00
Marc Glisse 91090ec2b7 Merge remote-tracking branch 'origin/Number_types-powerpc-glisse'
Tested in CGAL-4.4-Ic-57 (and CGAL-4.4-Ic-51 but only for ppc64_linux_gcc47).

Approved by the Release Manager.
2013-12-21 11:09:18 +01:00
Laurent Rineau 7b5a8a388d merge branch origin/Number_types-new_delete_mismatch-GF
Remove memory leaks detected by AddressSanitizer.
Tested in CGAL-4.4-Ic-54 and CGAL-4.4-Ic-55.
Approved by the release manager.
2013-12-11 13:42:34 +01:00
Marc Glisse 8f2b5970e7 Fix FPU rounding mode on powerpc.
The code was incorrect, we should have used _FPU_GETCW(CW)&3 to keep
only the rounding mode bits. However, glibc comes with an optimized
inline version of fegetround and fesetround so there is no point using
anything else.
2013-12-07 01:41:02 +01:00
Sébastien Loriot 0fa2cacb60 remove doc_tex documentation (including developer manual) and old manual tools 2013-12-03 17:27:02 +01:00
Marc Glisse 7f1adbc485 Reformulate one comment about IA_opacify for vectors. 2013-11-27 17:57:43 +01:00
Marc Glisse 8ddf8255d5 Merge branch 'Kernel_d-rewrite-glisse-old' into Kernel_d-rewrite-glisse
Hopefully the doc will be easier to build this way.
2013-11-23 12:34:18 +01:00
Marc Glisse a1c21ae45f Improve asm for -m32 and with Intel's compiler. 2013-11-19 00:46:00 +01:00
Andreas Fabri 18b04bfb22 delete [] instead of delete after a new array 2013-11-18 17:24:16 +01:00
Marc Glisse fffddfb806 Finish the removal of the template :-( 2013-11-17 22:18:39 +01:00
Marc Glisse d128a72551 IA_opacify is not generic, don't make it a template.
The code has become very specific to double, and we weren't using it for
vectors yet.
2013-11-17 12:54:34 +01:00
Marc Glisse 726a7daf63 Work around gcc bug. Improve support for non-x86. 2013-11-17 11:24:15 +01:00
Marc Glisse 325a687888 Fix llvm ICE on inline asm. Also improve asm for gcc.
It is strange, my experiments today don't give at all the same results I
remember from this summer...
2013-11-16 22:46:33 +01:00
Sébastien Loriot da1791759c Merge branch 'Number_types-mpzf-glisse'
Introduces a faster alternative to MP_Float and Gmpzf
    (see the documentation to see on which platforms it is available).
    When activated, it is used as default exact ring number type for exact
    evaluation of predicates (that only require ring operations).
    It is possible to switch back to the previous behavior by defining
    CGAL_DO_NOT_USE_MPZF

    Successfully tested in CGAL-4.4-Ic-29
    Approved by the Release Manager
2013-11-15 16:38:16 +01:00
Sébastien Loriot d99344bf98 add a way to easily switch Mpzf off 2013-11-14 12:55:39 +01:00
Marc Glisse 06e0774812 Cleanup assertions. 2013-11-14 10:38:34 +01:00
Laurent Rineau ae4ff9bc05 Minor rephrasing about the exactness of Mpfz(double) 2013-11-13 11:15:27 +01:00
Sébastien Loriot d466a4ce22 add Mpzf in the user manual 2013-11-12 19:23:16 +01:00
Sébastien Loriot 9168030414 explicit that constructors are exact 2013-11-12 18:03:52 +01:00
Sébastien Loriot e92b19a8e4 explicit when the macro CGAL_HAS+MPZF is defined 2013-11-12 17:48:27 +01:00
Sébastien Loriot 79e4030f09 rename mpzf to Mpzf 2013-11-12 17:40:46 +01:00
Luis Peñaranda ad5144404e typo, is->are 2013-11-06 11:51:13 -02:00
Marc Glisse d940e39efc Hopefully make MSVC quiet. 2013-11-06 14:31:29 +01:00
Luis Peñaranda 78de4bb35c updated Gmpfr and Gmpfi documentation
Gmpfi:
- it was added to the implementation section of the reference manual
  that the precision is decoupled from the mpfr precision.

Gmpfr:
- it said that mpfr handles four rounding modes; this is wrong, since
  mpfr 3 handles five. Now, it reads that Gmpfr supports these four
  rounding modes.
- a spurious star was removed from the reference manual.

NT user manual:
- it said that the precision of Gmpfi was inherited from Gmpfr; this was
  changed in the past and the sentence was corrected.
- a missing comma was added in the last section.
2013-11-06 11:15:32 -02:00
Luis Peñaranda 4d7c940c2f use CGAL/config.h instead to CGAL/basic.h
The only use of this include here is to detect the definition
CGAL_HAS_THREADS.
2013-11-05 20:29:15 -02:00
Luis Peñaranda f19d779046 adjusting to coding conventions in Gmp* tests
All the preprocessor definitions and template parameters starting with _
and a capital letter were removed.
2013-11-05 17:41:43 -02:00
Luis Peñaranda cf0e0a0445 bug in f2f36a1db3
I forgot to copy the pointers back to the Gmpfi.
2013-11-05 17:23:05 -02:00
Luis Peñaranda f2f36a1db3 fix memory leak in some Gmpfi operators
The leak was caused by the fact that some operators created an mpfi_t to
store the result and returned a Gmpfi constructed from that mpfi_t. The
problem was that it was impossible to free the memory used by that
number. The fix consisted in storing the result directly in a Gmpfi,
instead of a mpfi_t (this also results in a cleaner code).
2013-11-04 17:39:12 -02:00
Marc Glisse 4e58c5ebd6 Fix bug in comparison with 0. 2013-11-02 11:35:06 +01:00
Marc Glisse b53de35ff6 Work around Boost changing the name of their macros every other release.
Work around Microsoft defining min/max as macros.
2013-11-01 14:46:20 +01:00
Marc Glisse dcaff8048e Merge branch 'Number_types-mpzf-glisse-old' into Number_types-mpzf-glisse
Conflicts:
	Number_types/test/Number_types/ioformat.cpp
2013-10-31 14:05:52 +01:00
Marc Glisse b82554e46f Use CGAL_LITTLE_ENDIAN instead of boost.
Make conversions from mpzf explicit.
2013-10-31 13:40:07 +01:00
Marc Glisse b0fa7dc30d Merge remote-tracking branch 'origin/Number_types-fpu-glisse'
Approved by the release manager
2013-10-25 16:15:40 +02:00
Sébastien Loriot 700cfba92f doxygen does not like reference ending with - 2013-10-18 15:23:02 -07:00
Laurent Rineau 75067bd072 Fix several I/O issues with Apple-clang-3.2 and its libc++ 2013-10-11 16:12:02 +02:00
Laurent Rineau 532e33137d Renew test/Number_types/ioformat.cpp
That test was using macros, and now it used templates.
Test also the I/O for several values, instead of only "13".
2013-10-10 17:31:06 +02:00
Laurent Rineau a9aef7d36d Fix a bug in the operator>> of Gmpz, when Apple-clang-3.2 libc++ is used 2013-10-10 17:29:59 +02:00
Laurent Rineau 1213dfbc0b Merge remote-tracking branch 'origin/Algebraic_kernel_d-split_tests-GF'
- Split several test files of Polynomial, Algebraic_kernel_d, and
  Number_types into multiple test files, to avoid heap overflows of VC++.

Tested in CGAL-4.3-Ic-194
2013-10-09 14:29:02 +02:00
Laurent Rineau 67a3824cec Change permissions of files created by Andreas 2013-10-04 16:57:11 +02:00
Marc Glisse 88534752b1 Fix Quotient::operator=(double const&).
(we should also pass double by value...)
2013-10-04 14:00:56 +02:00
Andreas Fabri beaf920a6b remove Sqrt_extension.cpp as it got split in two test cases 2013-09-25 18:57:54 +02:00
Andreas Fabri b1a5095f5e split one testcase as VC++ suffers from a combinatorial explosion 2013-09-25 15:30:06 +02:00