Fix clang compiling error without sse4.2

This commit is contained in:
Jingyu Zhou 2019-07-30 14:56:27 -07:00
parent 14648e20f9
commit 83922f1f37
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,6 @@
#include <algorithm>
#include "fdbrpc/Platform.h"
#include "generated-constants.cpp"
#pragma GCC target("sse4.2")
static uint32_t append_trivial(uint32_t crc, const uint8_t * input, size_t length)
{
@ -172,6 +171,7 @@ static inline uint32_t shift_crc(uint32_t shift_table[][256], uint32_t crc)
}
/* Compute CRC-32C using the Intel hardware instruction. */
__attribute__((target("sse4.2")))
static uint32_t append_hw(uint32_t crc, const uint8_t * buf, size_t len)
{
const uint8_t * next = buf;