Skip to content

Commit

Permalink
Check if ABSL_HAVE_INTRINSIC_INT128 is defined
Browse files Browse the repository at this point in the history
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
  • Loading branch information
majnemer authored and copybara-github committed Dec 20, 2024
1 parent a54f802 commit 5913446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion absl/hash/hash_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 5913446

Please sign in to comment.