Skip to content

Commit c0b6a6e

Browse files
committed
don't use bump_alloc
1 parent c8d763d commit c0b6a6e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

verify/simd/many_facts.test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ using namespace cp_algo;
1515
constexpr int mod = 998244353;
1616
constexpr int imod = -math::inv2(mod);
1717

18-
template<int maxn = 100'000>
18+
template<bool use_bump_alloc = false, int maxn = 100'000>
1919
vector<int> facts(vector<int> const& args) {
2020
constexpr int accum = 4;
2121
constexpr int simd_size = 8;
2222
constexpr int block = 1 << 18;
2323
constexpr int subblock = block / simd_size;
2424
using T = array<int, 2>;
25-
using alloc = bump_alloc<T, 30 * maxn>;
25+
using alloc = conditional_t<use_bump_alloc,
26+
bump_alloc<T, 30 * maxn>,
27+
allocator<T>>;
2628
basic_string<T, char_traits<T>, alloc> odd_args_per_block[mod / subblock];
2729
basic_string<T, char_traits<T>, alloc> reg_args_per_block[mod / subblock];
2830
constexpr int limit_reg = mod / 64;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy