Botan 3.4.0
Crypto and TLS for C&
Namespaces | Functions
bit_ops.h File Reference

Internal Header. More...

#include <botan/types.h>

Go to the source code of this file.

Namespaces

namespace  Botan
 

Functions

template<typename T >
constexpr T Botan::bit_permute_step (T x, T mask, size_t shift)
 
template<typename T >
requires (std::is_integral<T>::value && sizeof(T) < 32)
constexpr uint8_t Botan::ceil_log2 (T x)
 
template<typename T >
requires (std::is_integral<T>::value)
constexpr T Botan::ceil_tobytes (T bits)
 
template<typename T >
constexpr T Botan::choose (T mask, T a, T b)
 
template<typename T >
requires (std::is_integral<T>::value)
constexpr T Botan::ct_is_zero (T x)
 
template<typename T >
requires (std::is_integral<T>::value)
constexpr size_t Botan::ctz (T n)
 
template<typename T >
requires (std::is_integral<T>::value)
constexpr T Botan::expand_top_bit (T a)
 
template<typename T >
requires (std::is_unsigned<T>::value)
constexpr size_t Botan::high_bit (T n)
 
template<typename T >
requires (std::is_unsigned<T>::value)
constexpr bool Botan::is_power_of_2 (T arg)
 
template<typename T >
constexpr T Botan::majority (T a, T b, T c)
 
template<typename T >
requires (std::is_integral<T>::value)
constexpr size_t Botan::significant_bytes (T n)
 
template<typename T >
constexpr void Botan::swap_bits (T &x, T &y, T mask, size_t shift)
 
constexpr size_t Botan::var_ctz32 (uint32_t n)
 

Detailed Description

Internal Header.

Definition in file bit_ops.h.