mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
14 lines
621 B
Diff
14 lines
621 B
Diff
|
diff --git a/absl/numeric/internal/bits.h b/absl/numeric/internal/bits.h
|
||
|
index bfef06bc..3091d1b4 100644
|
||
|
--- a/absl/numeric/internal/bits.h
|
||
|
+++ b/absl/numeric/internal/bits.h
|
||
|
@@ -303,7 +303,7 @@ CountTrailingZeroesNonzero64(uint64_t x) {
|
||
|
|
||
|
ABSL_ATTRIBUTE_ALWAYS_INLINE ABSL_INTERNAL_CONSTEXPR_CTZ inline int
|
||
|
CountTrailingZeroesNonzero16(uint16_t x) {
|
||
|
-#if ABSL_HAVE_BUILTIN(__builtin_ctzs)
|
||
|
+#if ABSL_HAVE_BUILTIN(__builtin_ctzs) && defined(__clang__)
|
||
|
static_assert(sizeof(unsigned short) == sizeof(x), // NOLINT(runtime/int)
|
||
|
"__builtin_ctzs does not take 16-bit arg");
|
||
|
return __builtin_ctzs(x);
|