59#include <nvhls_marshaller.h>
75template <
unsigned char N>
329template <
unsigned int N>
335template <
unsigned int N,
bool B = (N <= 64)>
338template <
unsigned int N>
344template <
unsigned int N>
386template <
typename type1,
typename type2>
393 const unsigned int W2 = Wrapped<type2>::width;
433template <
unsigned int W,
typename type>
486template <
typename type>
487type
get_slc(type
X,
const unsigned int i,
const unsigned int j) {
492 const unsigned int W = type::width;
487type
get_slc(type
X,
const unsigned int i,
const unsigned int j) {
…}
560template <
unsigned int W1,
typename type1,
typename type2>
626template <
typename type1>
631 l =
X.leading_sign();
633 l = Wrapped<type1>::width -1;
641 const unsigned int W1 = Wrapped<type1>::width;
644 const bool is_signed = Wrapped<type1>::is_signed;
681template <
typename type>
683 const unsigned int W = Wrapped<type>::width;
684 const bool is_signed = Wrapped<type>::is_signed;
687 out = (-((((type)(1)) << (W - 1)) - 1));
721template <
typename type>
726 const unsigned int W = Wrapped<type>::width;
727 const bool is_signed = Wrapped<type>::is_signed;
730 mag =
X.range(W - 2, 0);
739 out[W - 1] =
X[W - 1];
781template <
typename type>
786 const unsigned int W = Wrapped<type>::width;
787 const bool is_signed = Wrapped<type>::is_signed;
790 mag =
X.range(W - 2, 0);
798 out[W - 1] =
X[W - 1];
847template <
typename type1,
typename type2>
854 const unsigned int W1 = Wrapped<type1>::width;
855 const unsigned int W2 = Wrapped<type2>::width;
type get_min_val()
Minimum Value of a type.
unsigned int lzd(type1 X)
Leading zero detector.
nvhls_t< W >::nvuint_t get_slc(type X, const unsigned int i)
Function that returns slice of bits.
bool normalize(type1 &X, type2 &Y)
Normalize function.
type right_shift(type X, int shift)
Function that performs right shift while preserving sign.
type left_shift(type X, int shift)
Function that performs left shift while preserving sign.
type1 set_slc(type1 X, type2 Y, const unsigned int i)
Function that replaces slice of bits.
type2 leading_ones(type1 X)
LeadingOne Detector.
Compute index width of a constant.
Compute Celing of log2 of a constant.
Compute Floor of log2 of a constant.
Compute number of bits to represent a constant.
Compute power of 2 value greater than a given value.
Definition of vendor agnostic integer data types.