Skip to content

Commit 7b706e4

Browse files
committed
Put pragma GCC target("avx2") on all tests to make sure they compile in GCC 14
1 parent becd245 commit 7b706e4

File tree

74 files changed

+74
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+74
-10
lines changed

verify/combi/binom.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @brief Binomial Coefficient (Prime Mod)
22
#define PROBLEM "https://judge.yosupo.jp/problem/binomial_coefficient_prime_mod"
33
#pragma GCC optimize("O3,unroll-loops")
4+
#pragma GCC target("avx2")
45
#define CP_ALGO_MAXN 1e7
56
#include "cp-algo/number_theory/modint.hpp"
67
#include "cp-algo/math/combinatorics.hpp"

verify/combi/many_facts.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @brief Many Factorials
22
#define PROBLEM "https://judge.yosupo.jp/problem/many_factorials"
33
#pragma GCC optimize("O3,unroll-loops")
4+
#pragma GCC target("avx2")
45
#define CP_ALGO_CHECKPOINT
56
#include <bits/stdc++.h>
67
#include "blazingio/blazingio.min.hpp"

verify/combi/many_facts_dynamic.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @brief Many Factorials (dynamic Mod)
22
#define PROBLEM "https://judge.yosupo.jp/problem/many_factorials"
33
#pragma GCC optimize("O3,unroll-loops")
4+
#pragma GCC target("avx2")
45
#define CP_ALGO_CHECKPOINT
56
#include <bits/stdc++.h>
67
#include "blazingio/blazingio.min.hpp"

verify/geometry/arg.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @brief Sort Points by Argument
22
#define PROBLEM "https://judge.yosupo.jp/problem/sort_points_by_argument"
33
#pragma GCC optimize("O3,unroll-loops")
4-
#pragma GCC target("tune=native")
4+
#pragma GCC target("avx2")
55
#include "cp-algo/geometry/point.hpp"
66
#include <bits/stdc++.h>
77

verify/geometry/closest_pair.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @brief Closest Pair of Points
22
#define PROBLEM "https://judge.yosupo.jp/problem/closest_pair"
33
#pragma GCC optimize("O3,unroll-loops")
4+
#pragma GCC target("avx2")
45
#include "cp-algo/geometry/closest_pair.hpp"
56
#include <bits/stdc++.h>
67

verify/geometry/hull.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @brief Static Convex Hull
22
#define PROBLEM "https://judge.yosupo.jp/problem/static_convex_hull"
33
#pragma GCC optimize("O3,unroll-loops")
4-
#pragma GCC target("tune=native")
4+
#pragma GCC target("avx2")
55
#include "cp-algo/geometry/convex_hull.hpp"
66
#include <bits/stdc++.h>
77

verify/graph/2cc.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @brief Two-Edge-Connected Components
22
#define PROBLEM "https://judge.yosupo.jp/problem/two_edge_connected_components"
33
#pragma GCC optimize("O3,unroll-loops")
4+
#pragma GCC target("avx2")
45
#include <iostream>
56
#include "blazingio/blazingio.min.hpp"
67
#include "cp-algo/graph/tarjan.hpp"

verify/graph/bcc.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @brief Biconnected Components
22
#define PROBLEM "https://judge.yosupo.jp/problem/biconnected_components"
33
#pragma GCC optimize("O3,unroll-loops")
4+
#pragma GCC target("avx2")
45
#include <iostream>
56
#include "blazingio/blazingio.min.hpp"
67
#include "cp-algo/graph/tarjan.hpp"

verify/graph/cycle_directed.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @brief Cycle Detection (Directed)
22
#define PROBLEM "https://judge.yosupo.jp/problem/cycle_detection"
33
#pragma GCC optimize("O3,unroll-loops")
4+
#pragma GCC target("avx2")
45
#include <bits/stdc++.h>
56
#include "blazingio/blazingio.min.hpp"
67
#include "cp-algo/graph/cycle.hpp"

verify/graph/cycle_undirected.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @brief Cycle Detection (Undirected)
22
#define PROBLEM "https://judge.yosupo.jp/problem/cycle_detection_undirected"
33
#pragma GCC optimize("O3,unroll-loops")
4+
#pragma GCC target("avx2")
45
#include "cp-algo/graph/cycle.hpp"
56
#include <bits/stdc++.h>
67

0 commit comments

Comments
 (0)