remove Optimized

dev
MITSUNARI Shigeo 10 years ago
parent 14fd1d125d
commit 3b7f7cbbbc
  1. 14
      include/mcl/gmp_util.hpp
  2. 10
      include/mcl/operator.hpp

@ -361,18 +361,4 @@ public:
}
};
namespace ope {
template<>
struct Optimized<mpz_class> {
void init(const mpz_class&) {}
bool hasPowMod() const { return true; }
static void powMod(mpz_class& z, const mpz_class& x, const mpz_class& y, const mpz_class& m)
{
mpz_powm(z.get_mpz_t(), x.get_mpz_t(), y.get_mpz_t(), m.get_mpz_t());
}
};
} // mcl::ope
} // mcl

@ -101,16 +101,6 @@ struct hasIO : E {
}
};
template<class T>
struct Optimized {
bool hasMulMod() const { return false; }
void init(const T&) {}
static void mulMod(T&, const T&, const T&) {}
static void mulMod(T&, const T&, unsigned int) {}
bool hasPowMod() const { return false; }
static void powMod(T&, const T&, const T&, const T&) {}
};
} } // mcl::ope
#ifdef _WIN32

Loading…
Cancel
Save