Worldstone
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
SystemUtils.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
#include <type_traits>
#include "Platform.h"

Go to the source code of this file.

Macros

#define WS_UNUSED(x)   (void)x
 Mark a variable as unused to shut warnings when it is unused on purpose.
 

Functions

template<typename SignedResult , unsigned NbBits, typename InputType >
SignedResult WorldStone::Utils::signExtend (const InputType value)
 Convert a N-bits 2's complement signed value to a SignedResult value. More...
 
template<typename T >
WorldStone::Utils::reverseBits (T bits)
 Reverse the order of the bits in an bitset value. More...
 
uint16_t WorldStone::Utils::popCount (uint16_t value)
 Counts the number of bits set to 1. More...
 
uint32_t WorldStone::Utils::popCount (uint32_t value)
 
uint64_t WorldStone::Utils::popCount (uint64_t value)
 
template<class T , std::size_t N>
constexpr size_t WorldStone::Utils::Size (const T(&array)[N]) noexcept
 

Detailed Description

Author
Lectem
Date
08/10/2017.

Definition in file SystemUtils.h.