MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / __make_bits

Method __make_bits

include/stdexec/__detail/__counting_scopes.hpp:624–634  ·  view source on GitHub ↗

composes ___new_count and __new_state into the packed representation we store in __bits

Source from the content-addressed store, hash-verified

622 // composes ___new_count and __new_state into the packed representation we store
623 // in __bits
624 static constexpr std::size_t
625 __make_bits(std::size_t ___new_count, std::size_t __new_state) noexcept
626 {
627 // no high bits set
628 STDEXEC_ASSERT(__count(___new_count << 3) == ___new_count);
629
630 // no high bits set
631 STDEXEC_ASSERT(__state(__new_state) == __new_state);
632
633 return (___new_count << 3) | __state(__new_state);
634 }
635
636 bool __register(__join_state_base& __join_op) noexcept
637 {

Callers

nothing calls this directly

Calls 1

__stateClass · 0.70

Tested by

no test coverage detected