From 97193ee43de6843d5e8a6eac67f54a8c315f52bb Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 1 Oct 2017 06:13:06 -0400 Subject: Use explicit :: or std:: to refer to functions in namespaces --- src/lib/pubkey/mce/mce_workfactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/pubkey') 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(std::log(x) / std::log(2)); - double res = 2 * p * (n - k - l) * ldexp(x * x, -static_cast(l)); + double res = 2 * p * (n - k - l) * std::ldexp(x * x, -static_cast(l)); // x <- binomial(k/2,p)*2*(2*l+log[2](binomial(k/2,p))) x *= 2 * (2 * l + i); -- cgit v1.2.3