All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | List of all members
nvbio::popc_functor< word_type > Struct Template Reference

Detailed description

template< typename word_type>
struct nvbio::popc_functor< word_type >

A functor to compute the popcount of a word

Definition at line 1052 of file numbers.h.

#include <numbers.h>

Public Types

typedef word_type argument_type
typedef uint32 result_type

Public Methods

NVBIO_HOST_DEVICE result_type 
operator() (const argument_type op) const

Member Typedef Documentation

template<typename word_type >
typedef word_type nvbio::popc_functor< word_type >::argument_type

Definition at line 1054 of file numbers.h.

template<typename word_type >
typedef uint32 nvbio::popc_functor< word_type >::result_type

Definition at line 1055 of file numbers.h.

Member Function Documentation

template<typename word_type >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE result_type nvbio::popc_functor< word_type >::operator() ( const argument_type  op) const

functor implementation

Definition at line 1060 of file numbers.h.

The documentation for this struct was generated from the following file: