File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,14 @@ namespace cp_algo::math {
158
158
return callback ();
159
159
}
160
160
private:
161
- static Int m;
162
- static Base::UInt im, r1, r2;
161
+ static thread_local Int m;
162
+ static thread_local Base::UInt im, r1, r2;
163
163
};
164
164
template <typename Int>
165
- Int dynamic_modint<Int>::m = 1 ;
165
+ Int thread_local dynamic_modint<Int>::m = 1 ;
166
166
template <typename Int>
167
- dynamic_modint<Int>::Base::UInt dynamic_modint<Int>::im = -1 ;
167
+ dynamic_modint<Int>::Base::UInt thread_local dynamic_modint<Int>::im = -1 ;
168
168
template <typename Int>
169
- dynamic_modint<Int>::Base::UInt dynamic_modint<Int>::r2 = 0 ;
169
+ dynamic_modint<Int>::Base::UInt thread_local dynamic_modint<Int>::r2 = 0 ;
170
170
}
171
171
#endif // CP_ALGO_MATH_MODINT_HPP
You can’t perform that action at this time.
0 commit comments