Skip to content

Commit

Permalink
Enable int128_t if CPU(ADDRESS64)
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=274049
rdar://127951893

Reviewed by Justin Michaud.

Let's enable int128_t when CPU(ADDRESS64). Under this condition, clang and GCC can support it.

* Source/WTF/wtf/PlatformHave.h:

Canonical link: https://commits.webkit.org/278706@main
  • Loading branch information
Constellation committed May 13, 2024
1 parent 3ca98c9 commit a16f2bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/WTF/wtf/PlatformHave.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@
#define HAVE_PTHREAD_MAIN_NP 1
#endif

#if OS(DARWIN) && (CPU(X86_64) || CPU(ARM64)) && CPU(ADDRESS64)
/* watchOS (ARM64_32) must not use int128_t because of wrong behavior. */
#if (OS(DARWIN) || OS(LINUX)) && CPU(ADDRESS64)
#define HAVE_INT128_T 1
#endif

Expand Down

0 comments on commit a16f2bb

Please sign in to comment.