/*
 * Copyright (c) 2022-2023, NVIDIA CORPORATION.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#pragma once

#include <cuco/detail/hash_functions/murmurhash3.cuh>
#include <cuco/detail/hash_functions/xxhash.cuh>

namespace cuco {

/**
 * @brief The 32-bit integer finalizer function of `MurmurHash3` to hash the given argument on host
 * and device.
 *
 * @throw Key type must be 4 bytes in size
 *
 * @tparam Key The type of the values to hash
 */
template <typename Key>
using murmurhash3_fmix_32 = detail::MurmurHash3_fmix32<Key>;

/**
 * @brief The 64-bit integer finalizer function of `MurmurHash3` to hash the given argument on host
 * and device.
 *
 * @throw Key type must be 8 bytes in size
 *
 * @tparam Key The type of the values to hash
 */
template <typename Key>
using murmurhash3_fmix_64 = detail::MurmurHash3_fmix64<Key>;

/**
 * @brief A 32-bit `MurmurHash3` hash function to hash the given argument on host and device.
 *
 * @tparam Key The type of the values to hash
 */
template <typename Key>
using murmurhash3_32 = detail::MurmurHash3_32<Key>;

/**
 * @brief A 32-bit `XXH32` hash function to hash the given argument on host and device.
 *
 * @tparam Key The type of the values to hash
 */
template <typename Key>
using xxhash_32 = detail::XXHash_32<Key>;

/**
 * @brief A 64-bit `XXH64` hash function to hash the given argument on host and device.
 *
 * @tparam Key The type of the values to hash
 */
template <typename Key>
using xxhash_64 = detail::XXHash_64<Key>;

/**
 * @brief Default hash function.
 *
 * @tparam Key The type of the values to hash
 */
template <typename Key>
using default_hash_function = xxhash_32<Key>;

}  // namespace cuco
