diff options
author | Jack Lloyd <[email protected]> | 2017-10-01 06:13:06 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-01 06:13:06 -0400 |
commit | 97193ee43de6843d5e8a6eac67f54a8c315f52bb (patch) | |
tree | a78c34ef7c38c590d7e709cfcbb7ed956ac35bca /src/lib/pubkey/mce | |
parent | c868a71bdf77222f1700d3932d97d2a21e25b953 (diff) |
Use explicit :: or std:: to refer to functions in namespaces
Diffstat (limited to 'src/lib/pubkey/mce')
-rw-r--r-- | src/lib/pubkey/mce/mce_workfactor.cpp | 2 |
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); |