GNU Radio's BLOCKSTREAM Package
utils.h File Reference
#include <algorithm>
#include <sstream>
#include <vector>
#include <cstdint>
#include <limits>
#include "Tools/Exception/exception.hpp"

Go to the source code of this file.

Namespaces

 aff3ct
 
 aff3ct::tools
 

Functions

template<typename R >
R aff3ct::tools::div2 (R val)
 
template<>
int32_t aff3ct::tools::div2 (int32_t val)
 
template<>
int16_t aff3ct::tools::div2 (int16_t val)
 
template<>
int8_t aff3ct::tools::div2 (int8_t val)
 
template<typename R >
R aff3ct::tools::div4 (R val)
 
template<>
int32_t aff3ct::tools::div4 (int32_t val)
 
template<>
int16_t aff3ct::tools::div4 (int16_t val)
 
template<>
int8_t aff3ct::tools::div4 (int8_t val)
 
template<typename R >
R aff3ct::tools::div8 (R val)
 
template<>
int32_t aff3ct::tools::div8 (int32_t val)
 
template<>
int16_t aff3ct::tools::div8 (int16_t val)
 
template<>
int8_t aff3ct::tools::div8 (int8_t val)
 
template<typename R >
constexpr R aff3ct::tools::init_LR ()
 
template<typename R >
constexpr R aff3ct::tools::init_LLR ()
 
template<typename R >
constexpr R aff3ct::tools::sat_val ()
 
template<>
constexpr double aff3ct::tools::sat_val< double > ()
 
template<>
constexpr float aff3ct::tools::sat_val< float > ()
 
template<>
constexpr int32_t aff3ct::tools::sat_val< int32_t > ()
 
template<>
constexpr int16_t aff3ct::tools::sat_val< int16_t > ()
 
template<>
constexpr int8_t aff3ct::tools::sat_val< int8_t > ()
 
template<typename R >
constexpr std::pair< R, Raff3ct::tools::sat_vals ()
 
template<typename B >
constexpr B aff3ct::tools::bit_init ()
 
template<typename T >
aff3ct::tools::saturate (const T val, const T min, const T max)
 
template<typename T , class A = std::allocator<T>>
void aff3ct::tools::saturate (std::vector< T, A > &array, const T min, const T max)
 
template<typename B , typename R >
B aff3ct::tools::sgn (R val)
 
template<typename T >
constexpr bool aff3ct::tools::is_power_of_2 (T x)
 
template<typename R , typename function_type >
R aff3ct::tools::integral (function_type func, const R min, const R max, const int number_steps)