Revise stubs for ARCH_{K8,PPC,ARM}.
* ARCH_K8 and ARCH_ARM now work correctly on MSVC. * ARCH_PPC now uses the same macro as tcmalloc. Microsoft documentation: https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019 PowerPC documentation: http://openpowerfoundation.org/wp-content/uploads/resources/leabi/content/dbdoclet.50655243_75216.html PiperOrigin-RevId: 310160787
This commit is contained in:
@@ -69,19 +69,13 @@
|
|||||||
|
|
||||||
#include "snappy-stubs-public.h"
|
#include "snappy-stubs-public.h"
|
||||||
|
|
||||||
#if defined(__x86_64__)
|
// Used to enable 64-bit optimized versions of some routines.
|
||||||
|
#if defined(__x86_64__) || defined(_M_X64)
|
||||||
// Enable 64-bit optimized versions of some routines.
|
|
||||||
#define ARCH_K8 1
|
#define ARCH_K8 1
|
||||||
|
#elif defined(__PPC64__) || defined(__powerpc64__)
|
||||||
#elif defined(__ppc64__)
|
|
||||||
|
|
||||||
#define ARCH_PPC 1
|
#define ARCH_PPC 1
|
||||||
|
#elif defined(__aarch64__) || defined(_M_ARM64)
|
||||||
#elif defined(__aarch64__)
|
|
||||||
|
|
||||||
#define ARCH_ARM 1
|
#define ARCH_ARM 1
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Needed by OS X, among others.
|
// Needed by OS X, among others.
|
||||||
|
|||||||
Reference in New Issue
Block a user