Update phmap_bits.h

This commit is contained in:
greg
2019-07-31 12:32:16 -04:00
parent e8867a424d
commit d7db8bf5c7
+2 -9
View File
@@ -337,17 +337,10 @@ 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<PHMAP_EXTENSION unsigned __int128>(a) *
static_cast<PHMAP_EXTENSION unsigned __int128>(b);
auto result = static_cast<unsigned __extension__ __int128>(a) *
static_cast<unsigned __extension__ __int128>(b);
*high = static_cast<uint64_t>(result >> 64);
return static_cast<uint64_t>(result);
}