CUB
Main Page
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
cub
Log2
Static Public Members
|
List of all members
cub::Log2< N, CURRENT_VAL, COUNT > Struct Template Reference
Detailed description
template<int N, int CURRENT_VAL = N, int COUNT = 0>
struct cub::Log2< N, CURRENT_VAL, COUNT >
Statically determine log2(N), rounded up.
For example:
Log2<8>::VALUE
// 3
Log2<3>::VALUE
// 2
Static Public Members
static const int
VALUE
=
Log2
<N, (CURRENT_VAL >> 1), COUNT + 1>::VALUE
Static logarithm value.
The documentation for this struct was generated from the following file:
type_utils.cuh
Generated on Sat Mar 9 2013 04:59:40 for CUB by
1.8.3.1
© 2013 NVIDIA Corporation