summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kennelly <ckennelly@google.com>2020-07-15 17:34:03 +0000
committerVictor Costan <costan@google.com>2020-10-07 21:12:27 +0000
commit7ffaf77cf488261bab3561089e311e00b258e175 (patch)
tree246fa0b5d1c545b5b7edfd69996ec100d8b6e877
parent4dd277fed475de4898e0eea12124e14033636041 (diff)
downloadsnappy-git-7ffaf77cf488261bab3561089e311e00b258e175.tar.gz
Replace ARCH_K8 with __x86_64__.
PiperOrigin-RevId: 321389098
-rw-r--r--snappy-internal.h2
-rw-r--r--snappy-stubs-internal.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/snappy-internal.h b/snappy-internal.h
index f88577c..ce1dfc3 100644
--- a/snappy-internal.h
+++ b/snappy-internal.h
@@ -96,7 +96,7 @@ char* CompressFragment(const char* input,
//
// Separate implementation for 64-bit, little-endian cpus.
#if !defined(SNAPPY_IS_BIG_ENDIAN) && \
- (defined(ARCH_K8) || defined(ARCH_PPC) || defined(ARCH_ARM))
+ (defined(__x86_64__) || defined(_M_X64) || defined(ARCH_PPC) || defined(ARCH_ARM))
static inline std::pair<size_t, bool> FindMatchLength(const char* s1,
const char* s2,
const char* s2_limit,
diff --git a/snappy-stubs-internal.h b/snappy-stubs-internal.h
index 97263f3..5936cb7 100644
--- a/snappy-stubs-internal.h
+++ b/snappy-stubs-internal.h
@@ -70,9 +70,7 @@
#include "snappy-stubs-public.h"
// Used to enable 64-bit optimized versions of some routines.
-#if defined(__x86_64__) || defined(_M_X64)
-#define ARCH_K8 1
-#elif defined(__PPC64__) || defined(__powerpc64__)
+#if defined(__PPC64__) || defined(__powerpc64__)
#define ARCH_PPC 1
#elif defined(__aarch64__) || defined(_M_ARM64)
#define ARCH_ARM 1