Fix check for arm32 so umul is used consistently on gcc and clang when building on arm64. (#290)

This commit is contained in:
Gregory Popovitch
2025-10-24 09:05:30 -04:00
committed by GitHub
parent a95befa318
commit 4e410c7af3
+6 -2
View File
@@ -182,11 +182,15 @@
// Checks whether the __int128 compiler extension for a 128-bit
// integral type is supported.
// ------------------------------------------------------------
#if defined(__arm__) && !defined(__aarch64__)
#define PHMAP_ARM_32
#endif
#ifdef PHMAP_HAVE_INTRINSIC_INT128
#error PHMAP_HAVE_INTRINSIC_INT128 cannot be directly set
#elif defined(__SIZEOF_INT128__)
#if (defined(__clang__) && !defined(_WIN32) && !defined(__aarch64__)) || \
(defined(__CUDACC__) && __CUDACC_VER_MAJOR__ >= 9) || \
#if (defined(__clang__) && !defined(_WIN32) && !(defined(PHMAP_ARM_32))) || \
(defined(__CUDACC__) && __CUDACC_VER_MAJOR__ >= 9) || \
(defined(__GNUC__) && !defined(__clang__) && !defined(__CUDACC__))
#define PHMAP_HAVE_INTRINSIC_INT128 1
#elif defined(__CUDACC__)