🍺 BREW Explorer

← all formulae

crc32c

brew install crc32c v1.1.2 BSD-3-Clause

Implementation of CRC32C with CPU-specific acceleration

12
30-day installs · #8032
35
90-day · #8221
203
365-day · #7329
508
★ GitHub stars · updated 1y ago

Build dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Implementation of CRC32C with CPU-specific acceleration",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:41+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "crc32c",
  "github_default_branch": "main",
  "github_last_commit_at": "2025-04-07T23:42:04Z",
  "github_readme_excerpt": "# CRC32C\n\n[![Build Status](https://github.com/google/crc32c/actions/workflows/build.yml/badge.svg)](https://github.com/google/crc32c/actions/workflows/build.yml)\n\nNew file format authors should consider\n[HighwayHash](https://github.com/google/highwayhash). The initial version of\nthis code was extracted from [LevelDB](https://github.com/google/leveldb), which\nis a stable key-value store that is widely used at Google.\n\nThis project collects a few CRC32C implementations under an umbrella that\ndispatches to a suitable implementation based on the host computer\u0027s hardware\ncapabilities.\n\nCRC32C is specified as the CRC that uses the iSCSI polynomial in\n[RFC 3720](https://tools.ietf.org/html/rfc3720#section-12.1). The polynomial was\nintroduced by G. Castagnoli, S. Braeuer and M. Herrmann. CRC32C is used in\nsoftware such as Btrfs, ext4, Ceph and leveldb.\n\n\n## Usage\n\n```cpp\n#include \"crc32c/crc32c.h\"\n\nint main() {\n  const std::uint8_t buffer[] = {0, 0, 0, 0};\n  std::uint32_t result;\n\n  // Process a raw buffer.\n  result = crc32c::Crc32c(buffer, 4);\n\n  // Process a std::string.\n  std::string string;\n  string.resize(4);\n  result = crc32c::Crc32c(string);\n\n  // If you have C++17 support, process a std::string_view.\n  std::string_view string_view(string);\n  result = crc32c::Crc32c(string_view);\n\n  return 0;\n}\n```\n\n\n## Prerequisites\n\nThis project uses [CMake](https://cmake.org/) for building and testing. CMake is\navailable in all popular Linux distributions, as well as in\n[Homebrew](https://brew.sh/).\n\nThis project uses submodules for dependency management.\n\n```bash\ngit submodule update --init --recursive\n```\n\nIf you\u0027re using [Atom](https://atom.io/), the following packages can help.\n\n```bash\napm install autocomplete-clang build build-cmake clang-format language-cmake \\\n    linter linter-clang\n```\n\nIf you don\u0027t mind more setup in return for more speed, replace\n`autocomplete-clang` and `linter-clang` with `you-complete-me`. This requires\n[setting up ycmd](https://github.com/ycm-core/",
  "github_repo": "google/crc32c",
  "github_stars": 508,
  "github_topics": [],
  "homepage": "https://github.com/google/crc32c",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 12,
  "installs_365d": 203,
  "installs_90d": 35,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "BSD-3-Clause",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "crc32c",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 8032,
  "rank_365d": 7329,
  "rank_90d": 8221,
  "raw_hash": "de2fb521fde61dda",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/crc32c.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.1.2",
  "versioned_formulae": [],
  "why_use_this": null
}