From 5913446e0c0f8c1976627654956c3553e1519d2c Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Fri, 20 Dec 2024 11:32:12 -0800 Subject: [PATCH] Check if ABSL_HAVE_INTRINSIC_INT128 is defined If native int128 support is present, ABSL_HAVE_INTRINSIC_INT128 is defined to 1. It is undefined if it is unsupported. PiperOrigin-RevId: 708380214 Change-Id: If366f65fc371de7a7398c6106e9b03d36e2b7045 --- absl/hash/hash_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/absl/hash/hash_test.cc b/absl/hash/hash_test.cc index b4e49992c73..ed31a2de145 100644 --- a/absl/hash/hash_test.cc +++ b/absl/hash/hash_test.cc @@ -392,7 +392,7 @@ absl::Cord FragmentedCord(absl::string_view sv) { return absl::MakeFragmentedCord(parts); } -#if ABSL_HAVE_INTRINSIC_INT128 +#ifdef ABSL_HAVE_INTRINSIC_INT128 TEST(HashValueTest, TestIntrinsicInt128) { EXPECT_TRUE((is_hashable<__int128_t>::value)); EXPECT_TRUE((is_hashable<__uint128_t>::value));