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

Compute number of bits to represent a constant. More...

#include <nvhls_int.h>

Public Types

enum  { val = s_N<16>::s_X<X>::nbits }
 

Detailed Description

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

Compute number of bits to represent a constant.

Template Parameters
XMust be a constant
A Simple Example
#include <nvhls_int.h>
...
const int N = 8;
const int NumBits = nvhls::nbits<N>::val;
...
Compute number of bits to represent a constant.
Definition: nvhls_int.h:118

Definition at line 118 of file nvhls_int.h.


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