cuDDL
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
register.cuh File Reference
#include <cuda/std/algorithm>
#include <cuda/std/cstdint>
#include <cuda/std/limits>
#include <cuddl/detail/hash.cuh>

Go to the source code of this file.

Classes

struct  cuddl::register_layout< ExponentBits, MantissaBits >
 Compile-time split of a 16-bit DDL score into exponent and mantissa fields. More...
 

Namespaces

namespace  cuddl
 Batch operations over contiguous device rows.
 
namespace  cuddl::detail
 

Typedefs

using cuddl::default_register_layout = register_layout< 6, 10 >
 

Functions

template<typename Layout = default_register_layout>
__host__ __device__ uint16_t cuddl::detail::score (uint64_t hash) noexcept
 Computes the 16-bit DDL rarity score for hash.
 
template<typename Layout = default_register_layout>
__host__ __device__ constexpr uint64_t cuddl::detail::restore (uint16_t stored) noexcept
 Reconstructs the approximate original hash magnitude from a stored score.
 
template<typename Layout = default_register_layout>
__host__ __device__ constexpr uint64_t cuddl::detail::restore_midpoint (uint16_t stored) noexcept
 Reconstructs the interval midpoint for restore.
 

Variables

constexpr uint8_t cuddl::detail::mantissa_bits = default_register_layout::mantissa_bits
 Default score layout retained for source compatibility.
 
constexpr uint32_t cuddl::detail::mantissa_mask = (1U << mantissa_bits) - 1U
 
constexpr uint32_t cuddl::detail::restore_shift_base = 63U - mantissa_bits
 Default restoration constants retained for source compatibility.
 
constexpr uint32_t cuddl::detail::max_nlz = restore_shift_base