SUNphi  1.0
Bits.hpp File Reference

Access a variable by bit. More...

#include <bitset>
#include <metaprogramming/UniversalReferences.hpp>

Go to the source code of this file.

Functions

template<typename T >
bool SUNphi::bitOf (const T &in, const int pos)
 Access to a given bit of a variable. More...
 
template<typename T >
bool SUNphi::lowestBitOf (const T &in)
 Access to the lowest bit of a variable. More...
 

Detailed Description

Access a variable by bit.

Definition in file Bits.hpp.

Function Documentation

template<typename T >
bool SUNphi::bitOf ( const T &  in,
const int  pos 
)

Access to a given bit of a variable.

Size of the bitset

Bitset view of the variable

Parameters
inInput variable
posBit to take

Definition at line 17 of file Bits.hpp.

template<typename T >
bool SUNphi::lowestBitOf ( const T &  in)

Access to the lowest bit of a variable.

Parameters
inInput variable

Definition at line 34 of file Bits.hpp.