aboutsummaryrefslogtreecommitdiff
path: root/third_party/crc32c/src/src/crc32c_sse42_unittest.cc
blob: c73ad8ddd162383f217474489deb699738b856ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2017 The CRC32C Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include "gtest/gtest.h"

#include "./crc32c_extend_unittests.h"
#include "./crc32c_sse42.h"

namespace crc32c {

#if HAVE_SSE42 && (defined(_M_X64) || defined(__x86_64__))

struct Sse42TestTraits {
  static uint32_t Extend(uint32_t crc, const uint8_t* data, size_t count) {
    return ExtendSse42(crc, data, count);
  }
};

INSTANTIATE_TYPED_TEST_SUITE_P(Sse42, ExtendTest, Sse42TestTraits);

#endif  // HAVE_SSE42 && (defined(_M_X64) || defined(__x86_64__))

}  // namespace crc32c