s/sqrRoot/squareRoot/g

dev
MITSUNARI Shigeo 9 years ago
parent 2d9cd14d41
commit 5e22111283
  1. 2
      include/mcl/ec.hpp
  2. 2
      include/mcl/fp.hpp
  3. 4
      test/ec_test.cpp

@ -580,7 +580,7 @@ public:
t += a_;
t *= x;
t += b_;
Fp::sqrRoot(y, t);
Fp::squareRoot(y, t);
if (Fp::isOdd(y) ^ isYodd) {
Fp::neg(y, y);
}

@ -133,7 +133,7 @@ public:
x.getBlock(b);
return (b.p[0] & 1) == 1;
}
static inline bool sqrRoot(FpT& y, const FpT& x)
static inline bool squareRoot(FpT& y, const FpT& x)
{
mpz_class mx, my;
x.getMpz(mx);

@ -164,7 +164,7 @@ struct Test {
R -= P;
}
}
void sqrRoot() const
void squareRoot() const
{
Fp x(para.gx);
Fp y(para.gy);
@ -279,7 +279,7 @@ mul 499.00usec
mul();
neg_mul();
mul_fp();
sqrRoot();
squareRoot();
str();
}
private:

Loading…
Cancel
Save