diff options
Diffstat (limited to 'src/util/integer_cln_imp.h')
-rw-r--r-- | src/util/integer_cln_imp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/integer_cln_imp.h b/src/util/integer_cln_imp.h index 8551d0a6a..233b3aa08 100644 --- a/src/util/integer_cln_imp.h +++ b/src/util/integer_cln_imp.h @@ -152,6 +152,14 @@ public: return Integer( d_value * y.d_value ); } + Integer operator/(const Integer& y) const { + return Integer( cln::floor1(d_value, y.d_value) ); + } + + Integer operator%(const Integer& y) const { + return Integer( cln::floor2(d_value, y.d_value).remainder ); + } + /** Raise this Integer to the power <code>exp</code>. * * @param exp the exponent |