19 #ifndef PSTORE_OS_UINT64_HPP 20 #define PSTORE_OS_UINT64_HPP 26 # define WIN32_LEAN_AND_MEAN 30 #include "pstore/support/portab.hpp" 35 PSTORE_STATIC_ASSERT (
sizeof (DWORD) ==
sizeof (std::uint32_t));
36 PSTORE_STATIC_ASSERT (std::is_unsigned<DWORD>::value);
39 constexpr
auto uint64_high4 (std::uint64_t
const v) noexcept -> std::uint32_t {
40 return static_cast<std::uint32_t
> (v >> 32U);
42 constexpr
auto uint64_low4 (std::uint64_t
const v) noexcept -> std::uint32_t {
43 return static_cast<std::uint32_t
> (v & ((std::uint64_t{1} << 32U) - 1U));
48 #endif // PSTORE_OS_UINT64_HPP Definition: nonpod2.cpp:40