Skip to content

Commit

Permalink
Remove unused CRC function.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 684650501
  • Loading branch information
lszekeres authored and copybara-github committed Oct 11, 2024
1 parent 2c3ddb6 commit f42eaf4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ build --cxxopt=-Wno-c++20-extensions
# --host_cxxopt flag (https://bazel.build/docs/user-manual#host-cxxopt).
build --host_cxxopt=-std=c++17

# Use the builtin crc32 for fast integer hashing.
build:linux --copt=-mcrc32

# Build GoogleTest with ABSL support.
build --define absl=1

Expand Down
14 changes: 0 additions & 14 deletions centipede/int_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ inline uint64_t Hash64Bits(uint64_t bits) {
return bits * kPrime;
}

// Accumulates the 32-bit CRC for `previous` with `input`.
inline uint32_t CRC32(uint32_t previous, uint32_t input) {
#if __ARM_FEATURE_CRC32
return __builtin_arm_crc32w(previous, input);
#else
return __builtin_ia32_crc32si(previous, input);
#endif
}

// Returns `bits` rotated left by `n`.
inline uint64_t RotateLeft(uint64_t bits, uint64_t n) {
return (bits << n) | (bits >> (64 - n));
}

} // namespace centipede

#endif // THIRD_PARTY_CENTIPEDE_INT_UTILS_H_
3 changes: 0 additions & 3 deletions doc/quickstart-bazel.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ build --action_env=CXX=clang++
# Use the C++17 standard.
build --cxxopt=-std=c++17
# Use the builtin crc32 for fast integer hashing.
build --copt=-mcrc32
# Show everything when running tests.
test --test_output=streamed
Expand Down

0 comments on commit f42eaf4

Please sign in to comment.