File tree Expand file tree Collapse file tree 6 files changed +11
-2
lines changed
Expand file tree Collapse file tree 6 files changed +11
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 44#include < cstdint>
55#include < array>
66#include < bit>
7+ #pragma GCC push_options
8+ #pragma GCC target("avx2")
79namespace 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments