aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-03-26 13:46:34 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-03-26 13:46:34 +0800
commitaedc26f11b8c4b4201b44399c4ebc2d5eff06c42 (patch)
treec78c0a2065cb8de4b92376d46ee714a41fb3ea9c
parent399a97961a2410aa69913cb46f462fa817f05c49 (diff)
downloaddexon-mcl-aedc26f11b8c4b4201b44399c4ebc2d5eff06c42.tar.gz
dexon-mcl-aedc26f11b8c4b4201b44399c4ebc2d5eff06c42.tar.zst
dexon-mcl-aedc26f11b8c4b4201b44399c4ebc2d5eff06c42.zip
add const for normalize
-rw-r--r--include/mcl/fp.hpp2
-rw-r--r--include/mcl/fp_tower.hpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/mcl/fp.hpp b/include/mcl/fp.hpp
index d8cc1bf..3a6d0fc 100644
--- a/include/mcl/fp.hpp
+++ b/include/mcl/fp.hpp
@@ -463,7 +463,7 @@ public:
{
return fp::isLessArray(v_, rhs.v_, op_.N);
}
- void normalize() {} // dummy method
+ void normalize() const {} // dummy method
/*
set IoMode for operator<<(), or operator>>()
*/
diff --git a/include/mcl/fp_tower.hpp b/include/mcl/fp_tower.hpp
index ae8effb..55c4be0 100644
--- a/include/mcl/fp_tower.hpp
+++ b/include/mcl/fp_tower.hpp
@@ -157,7 +157,7 @@ public:
bool isOne() const { return a.isOne() && b.isZero(); }
bool operator==(const Fp2T& rhs) const { return a == rhs.a && b == rhs.b; }
bool operator!=(const Fp2T& rhs) const { return !operator==(rhs); }
- void normalize() {} // dummy method
+ void normalize() const {} // dummy method
/*
return true is a is odd (do not consider b)
this function is for only compressed reprezentation of EC
@@ -753,7 +753,7 @@ struct Fp6T : public fp::Operator<Fp6T<Fp> > {
Fp2::mul(y.b, p.b, q);
Fp2::mul(y.c, p.c, q);
}
- void normalize() {} // dummy
+ void normalize() const {} // dummy
};
/*
@@ -897,7 +897,7 @@ struct Fp12T : public fp::Operator<Fp12T<Fp> > {
{
return a.getStr(ioMode) + fp::getIoSeparator(ioMode) + b.getStr(ioMode);
}
- void normalize() {} // dummy
+ void normalize() const {} // dummy
};
} // mcl