aboutsummaryrefslogtreecommitdiff
path: root/bigint.h
diff options
context:
space:
mode:
authorTom Smeding <hallo@tomsmeding.nl>2016-10-24 14:22:24 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-24 19:33:53 +0200
commit7cca53ede2ee4900fce30334fb561a24d1b5d2de (patch)
tree50ab1737c28d718efa672caef8c1c82ff47475e9 /bigint.h
parentdf6c0e07bc74a4137ccb8719a28f58b50ba946c6 (diff)
ACTUALLY fix strongPseudoPrime2
Diffstat (limited to 'bigint.h')
-rw-r--r--bigint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bigint.h b/bigint.h
index c66dcf6..0378493 100644
--- a/bigint.h
+++ b/bigint.h
@@ -100,6 +100,7 @@ public:
slongdigit_t lowdigits() const;
bool even() const;
bool odd() const;
+ int trailingZeros() const; //throws domain_error if called on zero value
std::string serialiseMantissa() const; //stores everything but the sign
void deserialiseMantissa(const std::string&); //restores non-negative number; can throw invalid_argument