From aa162867e92fdcc04101d85a986291091cbab254 Mon Sep 17 00:00:00 2001 From: Konstantin Vinogradov Date: Thu, 8 Apr 2021 15:28:32 +0200 Subject: [PATCH] Replace alternative CPP operators, see issue #297 --- hls4ml/templates/vivado/nnet_utils/nnet_mult.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hls4ml/templates/vivado/nnet_utils/nnet_mult.h b/hls4ml/templates/vivado/nnet_utils/nnet_mult.h index 0de1c5a24..6a91ad431 100644 --- a/hls4ml/templates/vivado/nnet_utils/nnet_mult.h +++ b/hls4ml/templates/vivado/nnet_utils/nnet_mult.h @@ -90,13 +90,13 @@ class weight_exponential : public Product{ template inline typename std::enable_if>::value - and std::is_same>::value, ap_int>::type + && std::is_same>::value, ap_int>::type cast(typename CONFIG_T::accum_t x){ return (ap_int) (x - CONFIG_T::n_in / 2) * 2; } template -inline typename std::enable_if<(not std::is_same>::value), res_T>::type +inline typename std::enable_if<(! std::is_same>::value), res_T>::type cast(typename CONFIG_T::accum_t x){ return (res_T) x; }