mac/include/nil/crypto3/detail/primes.hpp File Reference
#include <boost/integer.hpp>
Include dependency graph for mac/include/nil/crypto3/detail/primes.hpp:
Go to the source code of this file.
Classes | |
struct | nil::crypto3::detail::all_ones< Bits > |
struct | nil::crypto3::detail::all_ones< 0 > |
Namespaces | |
nil | |
nil::crypto3 | |
nil::crypto3::detail | |
Macros | |
#define | CRYPTO3_HASH_DEFINE_LARGEST_PRIME_BY_OFFSET(B, D) |
Macro Definition Documentation
◆ CRYPTO3_HASH_DEFINE_LARGEST_PRIME_BY_OFFSET
#define CRYPTO3_HASH_DEFINE_LARGEST_PRIME_BY_OFFSET | ( | B, | |
D | |||
) |
Value:
template<> \
struct largest_prime<B> { \
constexpr static boost::uint_t<B>::least const value = all_ones<B>::value - D; \
}; \
constexpr boost::uint_t<B>::least const largest_prime<B>::value;