Embedded Artistry Framework
Embedded Systems C++ Framework
Classes | Namespaces
bits.hpp File Reference
#include "bits.h"
#include <algorithm>
#include <array>
#include <climits>
Include dependency graph for bits.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  embutil::countbits< tval >
 Template struct for counting set bits and significant bits at compile-time. More...
 

Namespaces

 embutil
 Embedded framework utility functions and classes.
 

Functions

Alignment Functions
template<typename TIntegralType >
constexpr bool embutil::is_power_2 (TIntegralType val) noexcept
 Check if a number is a power of 2. More...
 
template<typename TType >
constexpr bool embutil::is_aligned (const TType val, const size_t align) noexcept
 Checks if a value meets a specified alignment. More...
 
Bitfield Functions
template<typename TIntegralType , typename... Args>
constexpr TIntegralType embutil::bitmask (Args &&... args) noexcept
 A C++ 17 bitmask generator. More...