X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=folly%2Fexperimental%2Ftest%2FBitsTest.cpp;h=aeff9d35e511af0b5383022848049227c0c675fd;hb=36a9fc062fa61f5d468c5ee3ad9e7d199ef9c153;hp=af7038249a2499ac55c493691e8a7261f7224370;hpb=918988e5129b7e61b42d5077c0175ca27cb8371d;p=folly.git diff --git a/folly/experimental/test/BitsTest.cpp b/folly/experimental/test/BitsTest.cpp index af703824..aeff9d35 100644 --- a/folly/experimental/test/BitsTest.cpp +++ b/folly/experimental/test/BitsTest.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#include + #include #include @@ -246,7 +248,7 @@ T testValue(int bits) { if (std::is_signed::value) { --bits; } - auto value = pow(2, bits) * (negate ? -2.0 : 2.0) / 3.0; + auto value = std::pow(2, bits) * (negate ? -2.0 : 2.0) / 3.0; CHECK_GE(value, std::numeric_limits::min()); CHECK_LE(value, std::numeric_limits::max()); return static_cast(value);