Skip to content

Commit 3ca7649

Browse files
committed
initial commit
1 parent 038890e commit 3ca7649

File tree

8 files changed

+31
-37
lines changed

8 files changed

+31
-37
lines changed

bugger-config.cmake.in

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
if(NOT TARGET papilo)
2-
include(${CMAKE_CURRENT_LIST_DIR}/papilo-targets.cmake)
1+
if(NOT TARGET bugger)
2+
include(${CMAKE_CURRENT_LIST_DIR}/bugger-targets.cmake)
33
endif()
4-
set(PAPILO_IMPORTED_TARGETS papilo)
5-
set(PAPILO_FOUND 1)
4+
set(BUGGER_IMPORTED_TARGETS bugger)
5+
set(BUGGER_FOUND 1)
66

77
if(NOT TBB_FOUND)
88
list(APPEND CMAKE_MODULE_PATH @TBB_MODULE_PATH@)
99
find_package(TBB 2018 COMPONENTS tbb tbbmalloc REQUIRED HINTS ${CMAKE_CURRENT_LIST_DIR}/_deps/local/)
1010
endif()
11-
if(NOT TBB_FOUND)
12-
set(PAPILO_FOUND 0)
13-
endif()
1411

1512
find_package(Threads REQUIRED)
16-
if(NOT Threads_FOUND)
17-
set(PAPILO_FOUND 0)
18-
endif()
1913

src/bugger/data/ConstraintMatrix.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ class ConstraintMatrix
619619
Vec<int> colsize;
620620
};
621621

622-
#ifdef PAPILO_USE_EXTERN_TEMPLATES
622+
#ifdef BUGGER_USE_EXTERN_TEMPLATES
623623
extern template class ConstraintMatrix<double>;
624624
extern template class ConstraintMatrix<Quad>;
625625
extern template class ConstraintMatrix<Rational>;

src/bugger/data/SparseStorage.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ class SparseStorage
412412
int minInterRowSpace = 0;
413413
};
414414

415-
#ifdef PAPILO_USE_EXTERN_TEMPLATES
415+
#ifdef BUGGER_USE_EXTERN_TEMPLATES
416416
extern template class SparseStorage<double>;
417417
extern template class SparseStorage<Quad>;
418418
extern template class SparseStorage<Rational>;

src/bugger/data/VariableDomains.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct VariableDomains
9090
}
9191
};
9292

93-
#ifdef PAPILO_USE_EXTERN_TEMPLATES
93+
#ifdef BUGGER_USE_EXTERN_TEMPLATES
9494
extern template struct VariableDomains<double>;
9595
extern template struct VariableDomains<Quad>;
9696
extern template struct VariableDomains<Rational>;

src/bugger/misc/Hash.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#include "bugger/Config.hpp"
2828

29-
#ifndef PAPILO_USE_STANDARD_HASHMAP
29+
#ifndef BUGGER_USE_STANDARD_HASHMAP
3030
#include "bugger/external/ska/bytell_hash_map.hpp"
3131
#else
3232
#include <unordered_map>
@@ -101,7 +101,7 @@ struct Hasher<T, T>
101101
}
102102
};
103103

104-
#ifndef PAPILO_USE_STANDARD_HASHMAP
104+
#ifndef BUGGER_USE_STANDARD_HASHMAP
105105

106106
template <typename K, typename V, typename H = std::hash<K>,
107107
typename E = std::equal_to<K>>

src/bugger/misc/MultiPrecision.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
#include <memory>
3131
#include <boost/serialization/split_free.hpp>
3232

33-
#ifdef PAPILO_HAVE_FLOAT128
33+
#ifdef BUGGER_HAVE_FLOAT128
3434
#include <boost/multiprecision/float128.hpp>
3535
namespace bugger
3636
{
3737
using Quad = boost::multiprecision::float128;
3838
} // namespace bugger
39-
#elif defined( PAPILO_HAVE_GMP )
39+
#elif defined( BUGGER_HAVE_GMP )
4040
#include <boost/multiprecision/gmp.hpp>
4141

4242
namespace bugger
@@ -55,7 +55,7 @@ using Quad = boost::multiprecision::cpp_bin_float_quad;
5555
} // namespace bugger
5656
#endif
5757

58-
#ifdef PAPILO_HAVE_GMP
58+
#ifdef BUGGER_HAVE_GMP
5959
#include <boost/multiprecision/cpp_bin_float.hpp>
6060
#include <boost/multiprecision/gmp.hpp>
6161
#include <boost/serialization/nvp.hpp>

src/bugger/misc/fmt.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,35 @@
3333
*/
3434
#ifndef NOMINMAX
3535
#define NOMINMAX
36-
#define PAPILO_DEFINED_NOMINMAX
36+
#define BUGGER_DEFINED_NOMINMAX
3737
#endif
3838

3939
#ifndef WIN32_LEAN_AND_MEAN
4040
#define WIN32_LEAN_AND_MEAN
41-
#define PAPILO_DEFINED_WIN32_LEAN_AND_MEAN
41+
#define BUGGER_DEFINED_WIN32_LEAN_AND_MEAN
4242
#endif
4343

4444
#ifndef NOGDI
4545
#define NOGDI
46-
#define PAPILO_DEFINED_NOGDI
46+
#define BUGGER_DEFINED_NOGDI
4747
#endif
4848

4949
#include "bugger/external/fmt/format.h"
5050
#include "bugger/external/fmt/ostream.h"
5151

52-
#ifdef PAPILO_DEFINED_NOGDI
52+
#ifdef BUGGER_DEFINED_NOGDI
5353
#undef NOGDI
54-
#undef PAPILO_DEFINED_NOGDI
54+
#undef BUGGER_DEFINED_NOGDI
5555
#endif
5656

57-
#ifdef PAPILO_DEFINED_NOMINMAX
57+
#ifdef BUGGER_DEFINED_NOMINMAX
5858
#undef NOMINMAX
59-
#undef PAPILO_DEFINED_NOMINMAX
59+
#undef BUGGER_DEFINED_NOMINMAX
6060
#endif
6161

62-
#ifdef PAPILO_DEFINED_WIN32_LEAN_AND_MEAN
62+
#ifdef BUGGER_DEFINED_WIN32_LEAN_AND_MEAN
6363
#undef WIN32_LEAN_AND_MEAN
64-
#undef PAPILO_DEFINED_WIN32_LEAN_AND_MEAN
64+
#undef BUGGER_DEFINED_WIN32_LEAN_AND_MEAN
6565
#endif
6666

6767
#endif

src/bugger/misc/tbb.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@
2929
*/
3030
#ifndef NOMINMAX
3131
#define NOMINMAX
32-
#define PAPILO_DEFINED_NOMINMAX
32+
#define BUGGER_DEFINED_NOMINMAX
3333
#endif
3434

3535
#ifndef WIN32_LEAN_AND_MEAN
3636
#define WIN32_LEAN_AND_MEAN
37-
#define PAPILO_DEFINED_WIN32_LEAN_AND_MEAN
37+
#define BUGGER_DEFINED_WIN32_LEAN_AND_MEAN
3838
#endif
3939

4040
#ifndef WIN32_LEAN_AND_MEAN
4141
#define WIN32_LEAN_AND_MEAN
42-
#define PAPILO_DEFINED_WIN32_LEAN_AND_MEAN
42+
#define BUGGER_DEFINED_WIN32_LEAN_AND_MEAN
4343
#endif
4444

4545
#ifndef NOGDI
4646
#define NOGDI
47-
#define PAPILO_DEFINED_NOGDI
47+
#define BUGGER_DEFINED_NOGDI
4848
#endif
4949

5050
#ifdef _MSC_VER
@@ -66,19 +66,19 @@
6666
#pragma pop_macro( "__TBB_NO_IMPLICIT_LINKAGE" )
6767
#endif
6868

69-
#ifdef PAPILO_DEFINED_NOGDI
69+
#ifdef BUGGER_DEFINED_NOGDI
7070
#undef NOGDI
71-
#undef PAPILO_DEFINED_NOGDI
71+
#undef BUGGER_DEFINED_NOGDI
7272
#endif
7373

74-
#ifdef PAPILO_DEFINED_NOMINMAX
74+
#ifdef BUGGER_DEFINED_NOMINMAX
7575
#undef NOMINMAX
76-
#undef PAPILO_DEFINED_NOMINMAX
76+
#undef BUGGER_DEFINED_NOMINMAX
7777
#endif
7878

79-
#ifdef PAPILO_DEFINED_WIN32_LEAN_AND_MEAN
79+
#ifdef BUGGER_DEFINED_WIN32_LEAN_AND_MEAN
8080
#undef WIN32_LEAN_AND_MEAN
81-
#undef PAPILO_DEFINED_WIN32_LEAN_AND_MEAN
81+
#undef BUGGER_DEFINED_WIN32_LEAN_AND_MEAN
8282
#endif
8383

8484
#endif

0 commit comments

Comments
 (0)