|
|
|
@ -204,8 +204,19 @@ static const uint64 kuint64max = GOOGLE_ULONGLONG(0xFFFFFFFFFFFFFFFF); |
|
|
|
|
#define GOOGLE_SAFE_CONCURRENT_WRITES_END() |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#define GOOGLE_GUARDED_BY(x) |
|
|
|
|
#if defined(__clang__) && defined(__has_cpp_attribute) \ |
|
|
|
|
&& !defined(GOOGLE_PROTOBUF_OS_APPLE) |
|
|
|
|
# if defined(GOOGLE_PROTOBUF_OS_NACL) || defined(EMSCRIPTEN) || \ |
|
|
|
|
__has_cpp_attribute(clang::fallthrough) |
|
|
|
|
# define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]] |
|
|
|
|
# endif |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifndef GOOGLE_FALLTHROUGH_INTENDED |
|
|
|
|
# define GOOGLE_FALLTHROUGH_INTENDED |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#define GOOGLE_GUARDED_BY(x) |
|
|
|
|
#define GOOGLE_ATTRIBUTE_COLD |
|
|
|
|
|
|
|
|
|
// x86 and x86-64 can perform unaligned loads/stores directly.
|
|
|
|
|