MatchLib
All Classes Namespaces Files Functions Modules Pages
Public Types | List of all members
nvhls::log2_ceil< X > Struct Template Reference

Compute Celing of log2 of a constant. More...

#include <nvhls_int.h>

Public Types

enum  { lf = log2_floor<X>::val , val = (X == (1 << lf) ? lf : lf + 1) }
 

Detailed Description

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

Compute Celing of log2 of a constant.

Template Parameters
XMust be a constant
A Simple Example
#include <nvhls_int.h>
...
const int N = 8;
...
nvhls_t< W >::nvuint_t get_slc(type X, const unsigned int i)
Function that returns slice of bits.
Definition nvhls_int.h:437
Compute Celing of log2 of a constant.
Definition nvhls_int.h:174

Definition at line 174 of file nvhls_int.h.

Member Enumeration Documentation

◆ anonymous enum

template<unsigned X>
anonymous enum

Definition at line 175 of file nvhls_int.h.


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