Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Remove constexpr labels
Browse files Browse the repository at this point in the history
  • Loading branch information
djns99 committed Jan 23, 2022
1 parent 9e25fe9 commit 616f17d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thrust/system/detail/generic/shuffle.inl
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ class feistel_bijection {

private:
// Perform 64 bit multiplication and save result in two 32 bit int
constexpr static __host__ __device__ void mulhilo( std::uint64_t a, std::uint64_t b, std::uint32_t& hi, std::uint32_t& lo )
static __host__ __device__ void mulhilo( std::uint64_t a, std::uint64_t b, std::uint32_t& hi, std::uint32_t& lo )
{
std::uint64_t product = a * b;
hi = static_cast<std::uint32_t>( product >> 32 );
lo = static_cast<std::uint32_t>( product );
}

// Find the nearest power of two
constexpr static __host__ __device__ std::uint64_t get_cipher_bits(std::uint64_t m) {
static __host__ __device__ std::uint64_t get_cipher_bits(std::uint64_t m) {
if (m <= 16) return 4;
std::uint64_t i = 0;
m--;
Expand Down

0 comments on commit 616f17d

Please sign in to comment.