1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/abseil-cpp/absl.gni")
absl_source_set("cpu_detect") {
public = [ "internal/cpu_detect.h" ]
sources = [ "internal/cpu_detect.cc" ]
deps = [
"//third_party/abseil-cpp/absl/base",
"//third_party/abseil-cpp/absl/base:config",
]
visibility = [ ":*" ]
}
absl_source_set("crc_internal") {
public = [
"internal/crc.h",
"internal/crc32_x86_arm_combined_simd.h",
]
sources = [
"internal/crc.cc",
"internal/crc_internal.h",
"internal/crc_x86_arm_combined.cc",
]
deps = [
":cpu_detect",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:endian",
"//third_party/abseil-cpp/absl/base:prefetch",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/numeric:bits",
]
visibility = [ ":*" ]
}
absl_source_set("crc32c") {
public = [
"crc32c.h",
"internal/crc32c.h",
"internal/crc_memcpy.h",
]
sources = [
"crc32c.cc",
"internal/crc32c_inline.h",
"internal/crc_memcpy_fallback.cc",
"internal/crc_memcpy_x86_arm_combined.cc",
"internal/crc_non_temporal_memcpy.cc",
]
deps = [
":cpu_detect",
":crc_internal",
":non_temporal_memcpy",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:endian",
"//third_party/abseil-cpp/absl/base:prefetch",
"//third_party/abseil-cpp/absl/strings:str_format",
"//third_party/abseil-cpp/absl/strings:string_view",
]
}
absl_test("crc32c_test") {
sources = [ "crc32c_test.cc" ]
deps = [
":crc32c",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/strings:str_format",
"//third_party/abseil-cpp/absl/strings:string_view",
]
}
absl_source_set("non_temporal_arm_intrinsics") {
public = [ "internal/non_temporal_arm_intrinsics.h" ]
deps = [ "//third_party/abseil-cpp/absl/base:config" ]
visibility = [ ":*" ]
}
absl_source_set("non_temporal_memcpy") {
public = [ "internal/non_temporal_memcpy.h" ]
deps = [
":non_temporal_arm_intrinsics",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
]
visibility = [ ":*" ]
}
absl_test("crc_memcpy_test") {
sources = [ "internal/crc_memcpy_test.cc" ]
deps = [
":crc32c",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/random",
"//third_party/abseil-cpp/absl/random:distributions",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/strings:string_view",
]
}
absl_test("non_temporal_memcpy_test") {
sources = [ "internal/non_temporal_memcpy_test.cc" ]
deps = [ ":non_temporal_memcpy" ]
}
absl_source_set("crc_cord_state") {
public = [ "internal/crc_cord_state.h" ]
sources = [ "internal/crc_cord_state.cc" ]
deps = [
":crc32c",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:no_destructor",
"//third_party/abseil-cpp/absl/numeric:bits",
]
visibility = [
"//third_party/abseil-cpp/absl/crc/*",
"//third_party/abseil-cpp/absl/strings:*",
]
}
absl_test("crc_cord_state_test") {
sources = [ "internal/crc_cord_state_test.cc" ]
deps = [
":crc32c",
":crc_cord_state",
]
}
|