MatchLib
Public Types | List of all members
nvhls::next_pow2< n_val > Struct Template Reference

Compute power of 2 value greater than a given value. More...

#include <nvhls_int.h>

Public Types

enum  
 

Detailed Description

template<int n_val>
struct nvhls::next_pow2< n_val >

Compute power of 2 value greater than a given value.

Template Parameters
n_valMust be a constant <= 65536
A Simple Example
#include <nvhls_int.h>
...
const int N = 8;
const int next_pow2 = nvhls::next_pow2<N>::val;
...
Compute power of 2 value greater than a given value.
Definition: nvhls_int.h:208

Definition at line 208 of file nvhls_int.h.


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