#include "nnet_common.h"
#include <iostream>
#include <math.h>
Go to the source code of this file.
|
template<class data_T , class res_T , typename CONFIG_T > |
std::enable_if< std::is_same< data_T, ap_uint< 1 > >::value &&std::is_same< typename CONFIG_T::weight_t, ap_uint< 1 > >::value, ap_int< nnet::ceillog2(CONFIG_T::n_in)+2 > >::type | nnet::cast (typename CONFIG_T::accum_t x) |
|
template<class data_T , class res_T , typename CONFIG_T > |
std::enable_if< std::is_same< data_T, ap_uint< 1 > >::value &&!std::is_same< typename CONFIG_T::weight_t, ap_uint< 1 > >::value, res_T >::type | nnet::cast (typename CONFIG_T::accum_t x) |
|
template<class data_T , class res_T , typename CONFIG_T > |
std::enable_if<(!std::is_same< data_T, ap_uint< 1 >>::value), res_T >::type | nnet::cast (typename CONFIG_T::accum_t x) |
|
constexpr int | nnet::ceillog2 (int x) |
|