We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6548b8 commit d2d31aaCopy full SHA for d2d31aa
cp-algo/math/common.hpp
@@ -10,7 +10,7 @@ namespace cp_algo::math {
10
#endif
11
const int magic = 64; // threshold for sizes to run the naive algo
12
13
- auto bpow(auto const& x, int64_t n, auto const& one, auto op) {
+ auto bpow(auto const& x, auto n, auto const& one, auto op) {
14
if(n == 0) {
15
return one;
16
} else {
@@ -22,11 +22,11 @@ namespace cp_algo::math {
22
return t;
23
}
24
25
- auto bpow(auto x, int64_t n, auto ans) {
+ auto bpow(auto x, auto n, auto ans) {
26
return bpow(x, n, ans, std::multiplies{});
27
28
template<typename T>
29
- T bpow(T const& x, int64_t n) {
+ T bpow(T const& x, auto n) {
30
return bpow(x, n, T(1));
31
32
0 commit comments