aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-07 10:54:53 -0500
committerJack Lloyd <[email protected]>2018-01-07 10:54:53 -0500
commitf2a4d1ecc145406c227c3907b294f9e66e84e3ea (patch)
tree97b36a58d884ce8bd3c11d42ed5940cf6faf91e5
parentec1cfdd6b83782ac31bc66023145e90192442911 (diff)
Fix for systems needing 128-bit helper type
-rw-r--r--src/lib/utils/donna128.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/utils/donna128.h b/src/lib/utils/donna128.h
index feaf11d05..90ced395d 100644
--- a/src/lib/utils/donna128.h
+++ b/src/lib/utils/donna128.h
@@ -89,6 +89,11 @@ inline donna128 operator*(const donna128& x, uint64_t y)
return donna128(lo, hi);
}
+inline donna128 operator*(uint64_t y, const donna128& x)
+ {
+ return x * y;
+ }
+
inline donna128 operator+(const donna128& x, const donna128& y)
{
donna128 z = x;