Define missing SNAPPY_PREFETCH macros.

PiperOrigin-RevId: 523287305
This commit is contained in:
Richard O'Grady
2023-04-10 20:48:20 -07:00
parent 92f18e66fd
commit cfc573e08f
3 changed files with 15 additions and 0 deletions

View File

@@ -105,6 +105,12 @@
#define SNAPPY_ATTRIBUTE_ALWAYS_INLINE
#endif // HAVE_ATTRIBUTE_ALWAYS_INLINE
#if HAVE_BUILTIN_PREFETCH
#define SNAPPY_PREFETCH(ptr) __builtin_prefetch(ptr, 0, 3)
#else
#define SNAPPY_PREFETCH(ptr) (void)(ptr)
#endif
// Stubbed version of ABSL_FLAG.
//
// In the open source version, flags can only be changed at compile time.