diff --git a/port/port_posix_sse.cc b/port/port_posix_sse.cc index 57ec8fee7ed075..1e519ba0b64bef 100644 --- a/port/port_posix_sse.cc +++ b/port/port_posix_sse.cc @@ -37,6 +37,8 @@ static inline uint32_t LE_LOAD32(const uint8_t *p) { return word; } +#if defined(_M_X64) || defined(__x86_64__) // LE_LOAD64 is only used on x64. + // Used to fetch a naturally-aligned 64-bit word in little endian byte-order static inline uint64_t LE_LOAD64(const uint8_t *p) { uint64_t dword; @@ -44,6 +46,8 @@ static inline uint64_t LE_LOAD64(const uint8_t *p) { return dword; } +#endif // defined(_M_X64) || defined(__x86_64__) + static inline bool HaveSSE42() { #if defined(_MSC_VER) int cpu_info[4];