Skip to content

Commit 4e64432

Browse files
committed
fixes
1 parent 0fda3ba commit 4e64432

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

cp-algo/math/multivar.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ namespace cp_algo::math::fft {
5454
size_t M = std::max(flen, std::bit_ceil(2 * N - 1) / 2);
5555
for(size_t i = 0; i < K; i++) {
5656
A.emplace_back(data | std::views::enumerate | std::views::transform(
57-
[&](auto jx) __attribute__((always_inline)) {
57+
[&](auto jx) {
5858
auto [j, x] = jx;
5959
return ranks[j] == i ? x : base(0);
6060
}
6161
), M, false);
6262
B.emplace_back(b.data | std::views::enumerate | std::views::transform(
63-
[&](auto jx) __attribute__((always_inline)) {
63+
[&](auto jx) {
6464
auto [j, x] = jx;
6565
return ranks[j] == i ? x : base(0);
6666
}

cp-algo/min/util/simd.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#ifndef CP_ALGO_UTIL_SIMD_HPP
22
#define CP_ALGO_UTIL_SIMD_HPP
3+
#define _GLIBCXX_USE_DEPRECATED 0
4+
#pragma GCC push_options
5+
#pragma GCC target("avx2")
36
#include <experimental/simd>
47
#include <cstdint>
58
#include <cstddef>

cp-algo/util/bit.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <cstdint>
55
#include <array>
66
#include <bit>
7+
#pragma GCC push_options
8+
#pragma GCC target("avx2")
79
namespace cp_algo {
810
template<typename Uint>
911
constexpr size_t bit_width = sizeof(Uint) * 8;
@@ -68,4 +70,5 @@ namespace cp_algo {
6870
write_bits(p + 32, uint32_t(bits >> 32));
6971
}
7072
}
73+
#pragma GCC pop_options
7174
#endif // CP_ALGO_UTIL_BIT_HPP

verify/poly/multivar.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define PROBLEM "https://judge.yosupo.jp/problem/multivariate_convolution"
33
#pragma GCC optimize("Ofast,unroll-loops")
44
#define CP_ALGO_CHECKPOINT
5+
//#pragma GCC target("avx2")
56
#include <bits/stdc++.h>
67
#include "blazingio/blazingio.min.hpp"
78
#include "cp-algo/math/multivar.hpp"

verify/poly/wildcard.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define PROBLEM "https://judge.yosupo.jp/problem/wildcard_pattern_matching"
33
#pragma GCC optimize("Ofast,unroll-loops")
44
#define CP_ALGO_CHECKPOINT
5+
#pragma GCC target("avx2")
56
#include "cp-algo/math/cvector.hpp"
67
#include "cp-algo/random/rng.hpp"
78
#include <bits/stdc++.h>

verify/structures/bitpack/prod_mod_2.test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define PROBLEM "https://judge.yosupo.jp/problem/matrix_product_mod_2"
33
#pragma GCC optimize("Ofast,unroll-loops")
44
#define CP_ALGO_CHECKPOINT
5+
//#pragma GCC target("avx2")
56
#include "cp-algo/structures/bitpack.hpp"
67
#include "cp-algo/util/checkpoint.hpp"
78
#include <bits/stdc++.h>

0 commit comments

Comments
 (0)