Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support] Add llvm::xxh3_128bits #95863

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Commits on Jun 18, 2024

  1. [Support] Add llvm::xxh3_128bits

    Add a 128-bit xxhash function, following the existing
    `llvm::xxh3_64bits` and `llvm::xxHash` implementations.
    Previously, 48e93f5 added support for
    `llvm::xxh3_64bits`, which closely follows the upstream implementation
    at https://github.com/Cyan4973/xxHash, with simplifications from Devin
    Hussey's xxhash-clean.
    However, it is desirable to have a larger 128-bit hash key for use cases
    such as filesystem checksums where chance of collision needs to be
    negligible.
    
    So to that end this also ports over `llvm::xxh3_128bits`.
    
    Testing:
    - Add a test based on xsum_sanity_check.c in upstream xxhash.
    dukebw committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    3f36d1f View commit details
    Browse the repository at this point in the history