namespace alps {
template <class T, class N>
inline T gbit(T x, N n);
template <class T, class N>
inline T gbits(T x, N m, long n);
inline uint32_t maskr(uint16_t i);
inline uint32_t popcnt(uint32_t x);
}
extracts the n-th bit from a word. On Cray hardware this template is replaced by the intrinsic function of the same name.template <class T, class N> inline T gbit(T x, N n);
extracts m bits starting at position n. On Cray hardware this template is replaced by the intrinsic function of the same name.template <class T, class N> inline T gbits(T x, N m, long n);
generates a 32-bit mask with the rightmost i bits set to 1. On Cray hardware this function is replaced by the 64-bit intrinsic function of the same name.inline uint32_t maskr(uint16_t i);
counts the number of 1-bits in a 32-bit integer. On Cray hardware this function is replaced by the 64-bit intrinsic function of the same name.inline uint32_t popcnt(uint32_t x);