MatchLib
Public Types | List of all members
nvhls::log2_floor< X > Struct Template Reference

Compute Floor of log2 of a constant. More...

#include <nvhls_int.h>

Public Types

enum  { val = nbits<X>::val - 1 }
 

Detailed Description

template<unsigned X>
struct nvhls::log2_floor< X >

Compute Floor of log2 of a constant.

Template Parameters
XMust be a constant
A Simple Example
#include <nvhls_int.h>
...
const int N = 8;
const int Log2N_floor = nvhls::log2_floor<N>::val;
...

Definition at line 142 of file nvhls_int.h.


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