Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
boytacean
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
João Magalhães
boytacean
Commits
c0cb61e0
Verified
Commit
c0cb61e0
authored
8 months ago
by
João Magalhães
Browse files
Options
Downloads
Patches
Plain Diff
docs: improved module description for CRC32
parent
5ba6672e
No related branches found
No related tags found
No related merge requests found
Pipeline
#4812
passed
8 months ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
crates/hashing/src/crc32.rs
+4
-2
4 additions, 2 deletions
crates/hashing/src/crc32.rs
crates/hashing/src/crc32c.rs
+3
-1
3 additions, 1 deletion
crates/hashing/src/crc32c.rs
with
7 additions
and
3 deletions
crates/hashing/src/crc32.rs
+
4
−
2
View file @
c0cb61e0
//! CRC-32 implementation according to the CRC-32
/
ISO-HDLC specification.
//! CRC-32 implementation according to the CRC-32
(
ISO-HDLC
)
specification.
//!
//! The CRC-32 algorithm is a widely used checksum algorithm that is used in many
//! network protocols and file formats. The algorithm is based on a polynomial
//! division of the input data and a predefined polynomial value.
//!
//! The polynomial used in this implementation is 0x04C11DB7.
//!
//! This implementation is optimized for modern CPUs by using hardware acceleration
//! when available.
//! when available.
Current support includes only CRC for aarch64.
#[cfg(all(feature
=
"simd"
,
target_arch
=
"aarch64"
))]
use
std
::
arch
::
is_aarch64_feature_detected
;
...
...
This diff is collapsed.
Click to expand it.
crates/hashing/src/crc32c.rs
+
3
−
1
View file @
c0cb61e0
...
...
@@ -4,8 +4,10 @@
//! network protocols and file formats. The algorithm is based on a polynomial
//! division of the input data and a predefined polynomial value.
//!
//! The polynomial used in this implementation is 0x1EDC6F41.
//!
//! This implementation is optimized for modern CPUs by using hardware acceleration
//! when available.
//! when available.
Current support includes SSE4.2 for x86_64 and CRC for aarch64.
#[cfg(all(feature
=
"simd"
,
target_arch
=
"x86_64"
))]
use
std
::
arch
::
is_x86_feature_detected
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment