MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ order_key()

uint64_t MayaFlux::Kinesis::Discrete::order_key ( double value)
nodiscardconstexprnoexcept

The order key of a value.

Definition at line 24 of file OrderKey.hpp.

25{
26 if (value != value) {
28 }
29 const auto bits = std::bit_cast<uint64_t>(value + 0.0);
30 return (bits & detail::order_sign_bit) != 0U ? ~bits : bits | detail::order_sign_bit;
31}
constexpr uint64_t order_sign_bit
Definition OrderKey.hpp:17

References MayaFlux::Kinesis::Discrete::detail::order_nan_key, and MayaFlux::Kinesis::Discrete::detail::order_sign_bit.

Referenced by MayaFlux::Yantra::OperationHelper::encode_word_pairs(), and order_keys().

Here is the caller graph for this function: