Skip to content

Commit 7b2a392

Browse files
authored
Merge pull request #55 from atcoder/patch/issue53
fix #53: `#include <intrin.h>` is missing from internal_math.hpp
2 parents dd53a96 + 957c4e0 commit 7b2a392

20 files changed

+46
-51
lines changed

atcoder/internal_math.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
#include <utility>
55

6+
#ifdef _MSC_VER
7+
#include <intrin.h>
8+
#endif
9+
610
namespace atcoder {
711

812
namespace internal {

test/unittest/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ add_executable(ModintTest modint_test.cpp)
5454
target_link_libraries(ModintTest gtest gtest_main)
5555
gtest_discover_tests(ModintTest)
5656

57-
add_executable(MatrixTest matrix_test.cpp)
58-
target_link_libraries(MatrixTest gtest gtest_main)
59-
gtest_discover_tests(MatrixTest)
60-
6157
add_executable(DSUTest dsu_test.cpp)
6258
target_link_libraries(DSUTest gtest gtest_main)
6359
gtest_discover_tests(DSUTest)

test/unittest/basic_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#include <gtest/gtest.h>
2-
31
#include <atcoder/all>
42
#include <type_traits>
53

4+
#include <gtest/gtest.h>
5+
66
using namespace atcoder;
77
using uint = unsigned int;
88
using ll = long long;

test/unittest/bit_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#include <gtest/gtest.h>
2-
31
#include <atcoder/internal_bit>
42
#include <numeric>
53

4+
#include <gtest/gtest.h>
5+
66
using namespace atcoder;
77
using ll = long long;
88
using ull = unsigned long long;

test/unittest/convolution_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#include <gtest/gtest.h>
2-
31
#include <atcoder/convolution>
42
#include <atcoder/modint>
53
#include <random>
64
#include "../utils/random.hpp"
75

6+
#include <gtest/gtest.h>
7+
88
using namespace atcoder;
99
using uint = unsigned int;
1010
using ll = long long;

test/unittest/dsu_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#include <gtest/gtest.h>
2-
31
#include <atcoder/dsu>
42
#include <numeric>
53

4+
#include <gtest/gtest.h>
5+
66
using namespace atcoder;
77
using ll = long long;
88
using ull = unsigned long long;

test/unittest/fenwicktree_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#include <gtest/gtest.h>
2-
31
#include <atcoder/fenwicktree>
42
#include <atcoder/modint>
53
#include <numeric>
64

5+
#include <gtest/gtest.h>
6+
77
using namespace atcoder;
88
using ll = long long;
99
using ull = unsigned long long;

test/unittest/internal_math_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include <gtest/gtest.h>
2-
3-
#include <atcoder/internal_math>
42
#include <numeric>
53
#include "../utils/math.hpp"
64

5+
#include <atcoder/internal_math>
6+
77
using namespace atcoder;
88
using uint = unsigned int;
99
using ll = long long;

test/unittest/lazysegtree_stress_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#include <gtest/gtest.h>
2-
31
#include <algorithm>
42
#include <atcoder/lazysegtree>
53
#include "../utils/random.hpp"
64
#include <string>
75
#include <vector>
86

7+
#include <gtest/gtest.h>
8+
99
using namespace atcoder;
1010

1111
// time manager

test/unittest/lazysegtree_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#include <gtest/gtest.h>
2-
31
#include <algorithm>
42
#include <atcoder/lazysegtree>
53
#include <string>
64
#include <vector>
75

6+
#include <gtest/gtest.h>
7+
88
using namespace atcoder;
99
struct starry {
1010
static int op_ss(int a, int b) { return std::max(a, b); }

0 commit comments

Comments
 (0)