crc32c-hw

Crates.iocrc32c-hw
lib.rscrc32c-hw
version0.1.3
created_at2017-10-10 23:23:43.785001+00
updated_at2018-06-26 13:00:46.383426+00
descriptionHardware-accelerated (SSE 4.2) implementation of CRC32C with software fallback
homepagehttps://github.com/maksimsco/crc32c-hw
repositoryhttps://github.com/maksimsco/crc32c-hw
max_upload_size
id35175
size46,035
maksimsco (maksimsco)

documentation

http://docs.rs/crc32c-hw

README

CRC32C implementation with support for CPU-specific acceleration instructions (SSE 4.2) and software fallback.

crates.io crc32c_hw Build Status

Usage

To use crc32c-hw, add this to your Cargo.toml:

[dependencies]
crc32c-hw = "0.1.3"

Example

extern crate crc32c_hw;

let mut crc = 0;
crc = crc32c_hw::update(crc, b"123");
crc = crc32c_hw::update(crc, b"456");
crc = crc32c_hw::update(crc, b"789");
assert_eq!(crc, 0xe3069283);

assert_eq!(crc32c_hw::compute(b"123456789"), 0xe3069283);

Licence

Distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, and LICENSE-MIT for details.

Commit count: 0

cargo fmt