aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-01 06:13:06 -0400
committerJack Lloyd <[email protected]>2017-10-01 06:13:06 -0400
commit97193ee43de6843d5e8a6eac67f54a8c315f52bb (patch)
treea78c34ef7c38c590d7e709cfcbb7ed956ac35bca /src/lib/pubkey
parentc868a71bdf77222f1700d3932d97d2a21e25b953 (diff)
Use explicit :: or std:: to refer to functions in namespaces
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/mce/mce_workfactor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/mce_workfactor.cpp b/src/lib/pubkey/mce/mce_workfactor.cpp
index d4adb3647..ce38781c8 100644
--- a/src/lib/pubkey/mce/mce_workfactor.cpp
+++ b/src/lib/pubkey/mce/mce_workfactor.cpp
@@ -53,7 +53,7 @@ double cout_iter(size_t n, size_t k, size_t p, size_t l)
{
double x = binomial(k / 2, p);
const size_t i = static_cast<size_t>(std::log(x) / std::log(2));
- double res = 2 * p * (n - k - l) * ldexp(x * x, -static_cast<int>(l));
+ double res = 2 * p * (n - k - l) * std::ldexp(x * x, -static_cast<int>(l));
// x <- binomial(k/2,p)*2*(2*l+log[2](binomial(k/2,p)))
x *= 2 * (2 * l + i);