[all-commits] [llvm/llvm-project] 577c3f: [Support] Integrate SipHash.cpp into libSupport. ...

Ahmed Bougacha via All-commits all-commits at lists.llvm.org
Fri Jun 14 17:08:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 577c3f114b7c342ea6d8b69d3c4f22ce26d96b13
      https://github.com/llvm/llvm-project/commit/577c3f114b7c342ea6d8b69d3c4f22ce26d96b13
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-14 (Fri, 14 Jun 2024)

  Changed paths:
    A llvm/include/llvm/Support/SipHash.h
    M llvm/lib/Support/CMakeLists.txt
    M llvm/lib/Support/SipHash.cpp
    M llvm/unittests/Support/CMakeLists.txt
    M llvm/unittests/Support/SipHashTest.cpp

  Log Message:
  -----------
  [Support] Integrate SipHash.cpp into libSupport.  (#94394)

Start building it as part of the library, with some minor
tweaks compared to the reference implementation:
- clang-format to match libSupport
- remove tracing support
- add file header
- templatize cROUNDS/dROUNDS, as well as 8B/16B result length
- replace assert with static_assert
- use LLVM_FALLTHROUGH

This also exports interfaces for SipHash-2-4-64/-128, and
tests them using the reference test vectors.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list