|
cuSBF
|
XXHash_64 implementation from. More...
Functions | |
| constexpr __host__ __device__ __forceinline__ uint64_t | rotl64 (uint64_t x, int8_t r) |
Rotates x left by r bits. | |
| template<typename T > | |
| __host__ __device__ __forceinline__ T | load_chunk (const uint8_t *data, uint64_t index) |
Loads a chunk of type T from data at byte offset index*sizeof(T). | |
| constexpr __host__ __device__ __forceinline__ uint64_t | finalize (uint64_t h) |
| Applies the xxHash-64 final mixing (avalanche) step. | |
| template<typename T > | |
| __host__ __device__ uint64_t | xxhash64 (const T &key, uint64_t seed=0) |
| Computes the xxHash-64 digest of a value. | |
Variables | |
| constexpr uint64_t | PRIME64_1 = 11400714785074694791ULL |
| constexpr uint64_t | PRIME64_2 = 14029467366897019727ULL |
| constexpr uint64_t | PRIME64_3 = 1609587929392839161ULL |
| constexpr uint64_t | PRIME64_4 = 9650029242287828579ULL |
| constexpr uint64_t | PRIME64_5 = 2870177450012600261ULL |
XXHash_64 implementation from.
xxHash - Extremely Fast Hash algorithm Header File Copyright (C) 2012-2021 Yann Collet
BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
You can contact the author at:
|
constexpr |
Applies the xxHash-64 final mixing (avalanche) step.
Definition at line 69 of file hashutil.cuh.
| __host__ __device__ __forceinline__ T cusbf::detail::xxhash::load_chunk | ( | const uint8_t * | data, |
| uint64_t | index | ||
| ) |
Loads a chunk of type T from data at byte offset index*sizeof(T).
Definition at line 62 of file hashutil.cuh.
|
constexpr |
Rotates x left by r bits.
Definition at line 56 of file hashutil.cuh.
|
inline |
Computes the xxHash-64 digest of a value.
| T | Type of the value; hashed as raw bytes. |
| key | Value to hash. |
| seed | Optional seed (default 0). |
Definition at line 87 of file hashutil.cuh.
Definition at line 49 of file hashutil.cuh.
Definition at line 50 of file hashutil.cuh.
Definition at line 51 of file hashutil.cuh.
Definition at line 52 of file hashutil.cuh.
Definition at line 53 of file hashutil.cuh.