NVBIO
|
A functor to take the n leading bits of a word
#include <numbers.h>
Public Types | |
typedef word_type | argument_type |
typedef word_type | result_type |
Public Methods | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | leading_bits (const uint32 n) |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE result_type | operator() (const argument_type op) const |
Public Members | |
const uint32 | n_bits |
Static Public Members | |
static const uint32 | BITS = 8u*sizeof(word_type) |
typedef word_type nvbio::leading_bits< word_type >::argument_type |
typedef word_type nvbio::leading_bits< word_type >::result_type |
|
inline |
|
inline |
|
static |
const uint32 nvbio::leading_bits< word_type >::n_bits |