mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
Fix nvcc warning about missing return statement (#235)
This commit is contained in:
Vendored
+1
@@ -210,6 +210,7 @@ uint32_t TrailingZeros(T x) {
|
||||
return base_internal::CountTrailingZerosNonZero64(static_cast<uint64_t>(x));
|
||||
else
|
||||
return base_internal::CountTrailingZerosNonZero32(static_cast<uint32_t>(x));
|
||||
PHMAP_BUILTIN_UNREACHABLE();
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
Vendored
+9
@@ -650,6 +650,15 @@
|
||||
#define PHMAP_IF_CONSTEXPR(expr) if ((expr))
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// builtin unreachable
|
||||
// ----------------------------------------------------------------------
|
||||
#if PHMAP_HAVE_BUILTIN(__builtin_unreachable)
|
||||
#define PHMAP_BUILTIN_UNREACHABLE() __builtin_unreachable()
|
||||
#else
|
||||
#define PHMAP_BUILTIN_UNREACHABLE() (void)0
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// base/macros.h
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user