Skip to content

Commit

Permalink
remove ttmath in favour of DD
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Apr 16, 2020
1 parent 472c1f9 commit ab1b004
Show file tree
Hide file tree
Showing 23 changed files with 3 additions and 24,796 deletions.
1 change: 0 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ coverage:
precision: 2

ignore:
- "include/geos/algorithm/ttmath"
- "tests/unit/tut"
- "tests/xmltester/tinyxml2"

Expand Down
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ valgrindcheck:
check-local:
! find $(srcdir) -name '*.cpp' -o -name '*.h' | \
grep -v tests/xmltester/tinyxml | \
grep -v include/geos/algorithm/ttmath | \
xargs grep -n '[[:space:]]$$'
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ AC_OUTPUT([
include/geos/algorithm/Makefile
include/geos/algorithm/locate/Makefile
include/geos/algorithm/distance/Makefile
include/geos/algorithm/ttmath/Makefile
include/geos/geom/Makefile
include/geos/geom/prep/Makefile
include/geos/geom/util/Makefile
Expand Down
1 change: 0 additions & 1 deletion doc/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@ EXCLUDE_PATTERNS = */examples/* \
*/test/* \
*/bigtest/* \
*/io/markup/* \
*/ttmath/* \
config.h \
acconfig.h \
CoordinateList.cpp \
Expand Down
18 changes: 2 additions & 16 deletions include/geos/algorithm/CGAlgorithmsDD.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,7 @@
#ifndef GEOS_ALGORITHM_CGALGORITHMDD_H
#define GEOS_ALGORITHM_CGALGORITHMDD_H
#include <geos/export.h>

// #define USE_TTMATH

#ifdef USE_TTMATH

#include <geos/algorithm/ttmath/ttmath.h>

/// Usage: `ttmath::Big<exponent, mantissa>`
typedef ttmath::Big<TTMATH_BITS(32), TTMATH_BITS(128)> DD;
//typedef ttmath::Big<TTMATH_BITS(64), TTMATH_BITS(128)> DD;
//typedef ttmath::Big<TTMATH_BITS(32), TTMATH_BITS(256)> DD;
//typedef ttmath::Big<TTMATH_BITS(64), TTMATH_BITS(256)> DD;
#else
#include <geos/math/DD.h>
using namespace geos::math;
#endif


// Forward declarations
namespace geos {
Expand All @@ -45,6 +29,8 @@ class CoordinateSequence;
}
}

using namespace geos::math;

namespace geos {
namespace algorithm { // geos::algorithm

Expand Down
3 changes: 1 addition & 2 deletions include/geos/algorithm/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#
SUBDIRS = \
locate \
distance \
ttmath
distance

EXTRA_DIST =

Expand Down
28 changes: 0 additions & 28 deletions include/geos/algorithm/ttmath/COPYRIGHT

This file was deleted.

24 changes: 0 additions & 24 deletions include/geos/algorithm/ttmath/Makefile.am

This file was deleted.

23 changes: 0 additions & 23 deletions include/geos/algorithm/ttmath/README

This file was deleted.

Loading

0 comments on commit ab1b004

Please sign in to comment.