OpenQMC API
Loading...
Searching...
No Matches
rotate.h File Reference
#include "gpu.h"
#include <cstdint>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  oqmc
 

Functions

constexpr std::uint32_t oqmc::rotateBits (std::uint32_t value, std::uint32_t distance)
 Rotate bits in an integer value.
 
constexpr std::uint32_t oqmc::rotateBytes (std::uint32_t value, int distance)
 Rotate bytes in an integer value.
 

Detailed Description

Bit rotatation function implementations. These can be used to extract new random values from already estisting hash or rng numbers.