Go to the documentation of this file. 22 #ifndef ABSL_BASE_OPTIMIZATION_H_ 23 #define ABSL_BASE_OPTIMIZATION_H_ 40 #if defined(__pnacl__) 41 #define ABSL_BLOCK_TAIL_CALL_OPTIMIZATION() if (volatile int x = 0) { (void)x; } 42 #elif defined(__clang__) 44 #define ABSL_BLOCK_TAIL_CALL_OPTIMIZATION() __asm__ __volatile__("") 45 #elif defined(__GNUC__) 47 #define ABSL_BLOCK_TAIL_CALL_OPTIMIZATION() __asm__ __volatile__("") 48 #elif defined(_MSC_VER) 51 #define ABSL_BLOCK_TAIL_CALL_OPTIMIZATION() __nop() 53 #define ABSL_BLOCK_TAIL_CALL_OPTIMIZATION() if (volatile int x = 0) { (void)x; } 73 #if defined(__i386__) || defined(__x86_64__) 74 #define ABSL_CACHELINE_SIZE 64 75 #elif defined(__powerpc64__) 76 #define ABSL_CACHELINE_SIZE 128 77 #elif defined(__aarch64__) 80 #define ABSL_CACHELINE_SIZE 64 81 #elif defined(__arm__) 86 #if defined(__ARM_ARCH_5T__) 87 #define ABSL_CACHELINE_SIZE 32 88 #elif defined(__ARM_ARCH_7A__) 89 #define ABSL_CACHELINE_SIZE 64 93 #ifndef ABSL_CACHELINE_SIZE 96 #define ABSL_CACHELINE_SIZE 64 141 #define ABSL_CACHELINE_ALIGNED __attribute__((aligned(ABSL_CACHELINE_SIZE))) 142 #elif defined(_MSC_VER) 143 #define ABSL_CACHELINE_SIZE 64 144 #define ABSL_CACHELINE_ALIGNED __declspec(align(ABSL_CACHELINE_SIZE)) 146 #define ABSL_CACHELINE_SIZE 64 147 #define ABSL_CACHELINE_ALIGNED 172 #if ABSL_HAVE_BUILTIN(__builtin_expect) || \ 173 (defined(__GNUC__) && !defined(__clang__)) 174 #define ABSL_PREDICT_FALSE(x) (__builtin_expect(x, 0)) 175 #define ABSL_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1)) 177 #define ABSL_PREDICT_FALSE(x) (x) 178 #define ABSL_PREDICT_TRUE(x) (x) 181 #endif // ABSL_BASE_OPTIMIZATION_H_
abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:19:57