/ src / crc32c / src / crc32c_sse42_unittest.cc
crc32c_sse42_unittest.cc
 1  // Copyright 2017 The CRC32C Authors. All rights reserved.
 2  // Use of this source code is governed by a BSD-style license that can be
 3  // found in the LICENSE file. See the AUTHORS file for names of contributors.
 4  
 5  #include "gtest/gtest.h"
 6  
 7  #include "./crc32c_extend_unittests.h"
 8  #include "./crc32c_sse42.h"
 9  
10  namespace crc32c {
11  
12  #if HAVE_SSE42 && (defined(_M_X64) || defined(__x86_64__))
13  
14  struct Sse42TestTraits {
15    static uint32_t Extend(uint32_t crc, const uint8_t* data, size_t count) {
16      return ExtendSse42(crc, data, count);
17    }
18  };
19  
20  INSTANTIATE_TYPED_TEST_SUITE_P(Sse42, ExtendTest, Sse42TestTraits);
21  
22  #endif  // HAVE_SSE42 && (defined(_M_X64) || defined(__x86_64__))
23  
24  }  // namespace crc32c