fix compilation issue with previous change

This commit is contained in:
greg
2019-07-31 12:26:49 -04:00
parent be8ec975b7
commit e8867a424d
+9 -2
View File
@@ -337,10 +337,17 @@ PHMAP_BASE_INTERNAL_FORCEINLINE int CountTrailingZerosNonZero32(uint32_t n) {
#endif
#ifdef PHMAP_HAVE_INTRINSIC_INT128
#if defined(__GNUC__) && !defined(__clang__)
#define PHMAP_EXTENSION
#else
#define PHMAP_EXTENSION __extension__
#endif
inline uint64_t umul128(uint64_t a, uint64_t b, uint64_t* high)
{
auto result = static_cast<__extension__ unsigned __int128>(a) *
static_cast<__extension__ unsigned __int128>(b);
auto result = static_cast<PHMAP_EXTENSION unsigned __int128>(a) *
static_cast<PHMAP_EXTENSION unsigned __int128>(b);
*high = static_cast<uint64_t>(result >> 64);
return static_cast<uint64_t>(result);
}