From 6b3b5defef877b96311cf8a148062068aafb3096 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Thu, 8 Sep 2016 17:02:37 -0700 Subject: [PATCH] #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 --- folly/test/MathTest.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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(); -- 2.34.1