From: Michael Lee Date: Fri, 9 Sep 2016 00:02:37 +0000 (-0700) Subject: #if FOLLY_HAVE_INT128_T rather than #ifdef X-Git-Tag: v2016.09.12.00~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6b3b5defef877b96311cf8a148062068aafb3096;p=folly.git #if FOLLY_HAVE_INT128_T rather than #ifdef Summary: Switch from #ifdef to #if so the configuration can define the macro to 0 Reviewed By: yfeldblum, Orvid Differential Revision: D3838748 fbshipit-source-id: e287b07f0fdfdc86c882538e96f2078795b85bfd --- diff --git a/folly/test/MathTest.cpp b/folly/test/MathTest.cpp index a3023edc..166d2a74 100644 --- a/folly/test/MathTest.cpp +++ b/folly/test/MathTest.cpp @@ -155,7 +155,7 @@ TEST(Bits, divTestInt8) { runDivTests(); runDivTests(); runDivTests(); -#ifdef FOLLY_HAVE_INT128_T +#if FOLLY_HAVE_INT128_T runDivTests(); runDivTests(); #endif @@ -167,7 +167,7 @@ TEST(Bits, divTestInt16) { runDivTests(); runDivTests(); runDivTests(); -#ifdef FOLLY_HAVE_INT128_T +#if FOLLY_HAVE_INT128_T runDivTests(); runDivTests(); #endif @@ -179,12 +179,12 @@ TEST(Bits, divTestInt32) { runDivTests(); runDivTests(); runDivTests(); -#ifdef FOLLY_HAVE_INT128_T +#if FOLLY_HAVE_INT128_T runDivTests(); runDivTests(); #endif } -#ifdef FOLLY_HAVE_INT128_T +#if FOLLY_HAVE_INT128_T TEST(Bits, divTestInt64) { runDivTests(); runDivTests(); @@ -203,7 +203,7 @@ TEST(Bits, divTestUint8) { runDivTests(); runDivTests(); runDivTests(); -#ifdef FOLLY_HAVE_INT128_T +#if FOLLY_HAVE_INT128_T runDivTests(); runDivTests(); #endif @@ -215,7 +215,7 @@ TEST(Bits, divTestUint16) { runDivTests(); runDivTests(); runDivTests(); -#ifdef FOLLY_HAVE_INT128_T +#if FOLLY_HAVE_INT128_T runDivTests(); runDivTests(); #endif @@ -227,12 +227,12 @@ TEST(Bits, divTestUint32) { runDivTests(); runDivTests(); runDivTests(); -#ifdef FOLLY_HAVE_INT128_T +#if FOLLY_HAVE_INT128_T runDivTests(); runDivTests(); #endif } -#ifdef FOLLY_HAVE_INT128_T +#if FOLLY_HAVE_INT128_T TEST(Bits, divTestUint64) { runDivTests(); runDivTests();