alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
multiplyAndSplit64to32.hpp File Reference
#include "alpaka/core/common.hpp"
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  alpaka
 main alpaka namespace.
namespace  alpaka::rand
namespace  alpaka::rand::engine
namespace  alpaka::rand::engine::internal

Functions

constexpr auto alpaka::rand::engine::internal::high32Bits (std::uint64_t const x) -> std::uint32_t
 Get high 32 bits of a 64-bit number.
constexpr auto alpaka::rand::engine::internal::low32Bits (std::uint64_t const x) -> std::uint32_t
 Get low 32 bits of a 64-bit number.
constexpr void alpaka::rand::engine::internal::multiplyAndSplit64to32 (std::uint64_t const a, std::uint64_t const b, std::uint32_t &resultHigh, std::uint32_t &resultLow)
 Multiply two 64-bit numbers and split the result into high and low 32 bits, also known as "mulhilo32".