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 {
158158 return callback ();
159159 }
160160 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;
163163 };
164164 template <typename Int>
165- Int dynamic_modint<Int>::m = 1 ;
165+ Int thread_local dynamic_modint<Int>::m = 1 ;
166166 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 ;
168168 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 ;
170170}
171171#endif // CP_ALGO_MATH_MODINT_HPP
You can’t perform that action at this time.
0 commit comments