Compute index width of a constant.
More...
#include <nvhls_int.h>
|
enum | { val = (X==1)? 1 : log2_ceil<X>::val
} |
|
template<unsigned X>
struct nvhls::index_width< X >
Compute index width of a constant.
- Template Parameters
-
- Overview
- Returns 1 if X==1. otherwise log2_ceil<X>.
- A Simple Example
#include <nvhls_int.h>
...
const int ArraySize = 8;
...
Compute index width of a constant.
Definition at line 285 of file nvhls_int.h.
The documentation for this struct was generated from the following file: