|
Fermat
|
A functor to take the n leading bits of a word
#include <functors.h>
Public Types | |
| typedef word_type | argument_type |
| typedef word_type | result_type |
Public Methods | |
| CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | leading_bits (const uint32 n) |
| CUGAR_FORCEINLINE CUGAR_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) |
|
inline |
constructor
|
inline |
functor implementation
1.8.13