Skip to content

Commit

Permalink
Remove unused operations
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed May 24, 2021
1 parent a354c71 commit cd5ced3
Showing 1 changed file with 87 additions and 79 deletions.
166 changes: 87 additions & 79 deletions 3rdparty/exprtk/include/exprtk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36254,102 +36254,110 @@ namespace exprtk
#define register_unary_op(Op,UnaryFunctor) \
m.emplace(Op,UnaryFunctor<T>::process); \

register_unary_op(details::e_abs , details::abs_op )
register_unary_op(details::e_acos , details::acos_op )
register_unary_op(details::e_acosh , details::acosh_op)
register_unary_op(details::e_asin , details::asin_op )
register_unary_op(details::e_asinh , details::asinh_op)
register_unary_op(details::e_atanh , details::atanh_op)
register_unary_op(details::e_ceil , details::ceil_op )
register_unary_op(details::e_cos , details::cos_op )
register_unary_op(details::e_cosh , details::cosh_op )
register_unary_op(details::e_exp , details::exp_op )
register_unary_op(details::e_expm1 , details::expm1_op)
register_unary_op(details::e_floor , details::floor_op)
register_unary_op(details::e_log , details::log_op )
register_unary_op(details::e_log10 , details::log10_op)
register_unary_op(details::e_log2 , details::log2_op )
register_unary_op(details::e_log1p , details::log1p_op)
register_unary_op(details::e_neg , details::neg_op )
register_unary_op(details::e_pos , details::pos_op )
register_unary_op(details::e_round , details::round_op)
register_unary_op(details::e_sin , details::sin_op )
register_unary_op(details::e_sinc , details::sinc_op )
register_unary_op(details::e_sinh , details::sinh_op )
register_unary_op(details::e_sqrt , details::sqrt_op )
register_unary_op(details::e_tan , details::tan_op )
register_unary_op(details::e_tanh , details::tanh_op )
register_unary_op(details::e_cot , details::cot_op )
register_unary_op(details::e_sec , details::sec_op )
register_unary_op(details::e_csc , details::csc_op )
register_unary_op(details::e_r2d , details::r2d_op )
register_unary_op(details::e_d2r , details::d2r_op )
register_unary_op(details::e_d2g , details::d2g_op )
register_unary_op(details::e_g2d , details::g2d_op )
register_unary_op(details::e_notl , details::notl_op )
register_unary_op(details::e_sgn , details::sgn_op )
register_unary_op(details::e_erf , details::erf_op )
register_unary_op(details::e_erfc , details::erfc_op )
register_unary_op(details::e_ncdf , details::ncdf_op )
register_unary_op(details::e_frac , details::frac_op )
register_unary_op(details::e_trunc , details::trunc_op)
//register_unary_op(details::e_abs , details::abs_op )
//register_unary_op(details::e_acos , details::acos_op )
//register_unary_op(details::e_acosh , details::acosh_op)
//register_unary_op(details::e_asin , details::asin_op )
//register_unary_op(details::e_asinh , details::asinh_op)
//register_unary_op(details::e_atanh , details::atanh_op)
//register_unary_op(details::e_ceil , details::ceil_op )
//register_unary_op(details::e_cos , details::cos_op )
//register_unary_op(details::e_cosh , details::cosh_op )
//register_unary_op(details::e_exp , details::exp_op )
//register_unary_op(details::e_expm1 , details::expm1_op)
//register_unary_op(details::e_floor , details::floor_op)
//register_unary_op(details::e_log , details::log_op )
//register_unary_op(details::e_log10 , details::log10_op)
//register_unary_op(details::e_log2 , details::log2_op )
//register_unary_op(details::e_log1p , details::log1p_op)
//register_unary_op(details::e_neg , details::neg_op )
//register_unary_op(details::e_pos , details::pos_op )
//register_unary_op(details::e_round , details::round_op)
//register_unary_op(details::e_sin , details::sin_op )
//register_unary_op(details::e_sinc , details::sinc_op )
//register_unary_op(details::e_sinh , details::sinh_op )
//register_unary_op(details::e_sqrt , details::sqrt_op )
//register_unary_op(details::e_tan , details::tan_op )
//register_unary_op(details::e_tanh , details::tanh_op )
//register_unary_op(details::e_cot , details::cot_op )
//register_unary_op(details::e_sec , details::sec_op )
//register_unary_op(details::e_csc , details::csc_op )
//register_unary_op(details::e_r2d , details::r2d_op )
//register_unary_op(details::e_d2r , details::d2r_op )
//register_unary_op(details::e_d2g , details::d2g_op )
//register_unary_op(details::e_g2d , details::g2d_op )
//register_unary_op(details::e_notl , details::notl_op )
//register_unary_op(details::e_sgn , details::sgn_op )
//register_unary_op(details::e_erf , details::erf_op )
//register_unary_op(details::e_erfc , details::erfc_op )
//register_unary_op(details::e_ncdf , details::ncdf_op )
//register_unary_op(details::e_frac , details::frac_op )
//register_unary_op(details::e_trunc , details::trunc_op)
#undef register_unary_op

m.emplace(details::e_notl, details::notl_op<T>::process);
}

inline void load_binary_operations_map(binary_op_map_t& m)
{
typedef typename binary_op_map_t::value_type value_type;

#define register_binary_op(Op,BinaryFunctor) \
m.insert(value_type(Op,BinaryFunctor<T>::process)); \

register_binary_op(details::e_add , details::add_op )
register_binary_op(details::e_sub , details::sub_op )
register_binary_op(details::e_mul , details::mul_op )
register_binary_op(details::e_div , details::div_op )
register_binary_op(details::e_mod , details::mod_op )
register_binary_op(details::e_pow , details::pow_op )
register_binary_op(details::e_lt , details::lt_op )
register_binary_op(details::e_lte , details::lte_op )
register_binary_op(details::e_gt , details::gt_op )
register_binary_op(details::e_gte , details::gte_op )
register_binary_op(details::e_eq , details::eq_op )
register_binary_op(details::e_ne , details::ne_op )
register_binary_op(details::e_and , details::and_op )
register_binary_op(details::e_nand , details::nand_op)
register_binary_op(details::e_or , details::or_op )
register_binary_op(details::e_nor , details::nor_op )
register_binary_op(details::e_xor , details::xor_op )
register_binary_op(details::e_xnor , details::xnor_op)
m.emplace(Op,BinaryFunctor<T>::process); \

//register_binary_op(details::e_add , details::add_op )
//register_binary_op(details::e_sub , details::sub_op )
//register_binary_op(details::e_mul , details::mul_op )
//register_binary_op(details::e_div , details::div_op )
//register_binary_op(details::e_mod , details::mod_op )
//register_binary_op(details::e_pow , details::pow_op )
//register_binary_op(details::e_lt , details::lt_op )
//register_binary_op(details::e_lte , details::lte_op )
//register_binary_op(details::e_gt , details::gt_op )
//register_binary_op(details::e_gte , details::gte_op )
//register_binary_op(details::e_eq , details::eq_op )
//register_binary_op(details::e_ne , details::ne_op )
//register_binary_op(details::e_and , details::and_op )
//register_binary_op(details::e_nand , details::nand_op)
//register_binary_op(details::e_or , details::or_op )
//register_binary_op(details::e_nor , details::nor_op )
//register_binary_op(details::e_xor , details::xor_op )
//register_binary_op(details::e_xnor , details::xnor_op)
#undef register_binary_op

m.emplace(details::e_and, details::and_op<T>::process);
m.emplace(details::e_or, details::or_op<T>::process);
}

inline void load_inv_binary_operations_map(inv_binary_op_map_t& m)
{
typedef typename inv_binary_op_map_t::value_type value_type;

#define register_binary_op(Op,BinaryFunctor) \
m.insert(value_type(BinaryFunctor<T>::process,Op)); \

register_binary_op(details::e_add , details::add_op )
register_binary_op(details::e_sub , details::sub_op )
register_binary_op(details::e_mul , details::mul_op )
register_binary_op(details::e_div , details::div_op )
register_binary_op(details::e_mod , details::mod_op )
register_binary_op(details::e_pow , details::pow_op )
register_binary_op(details::e_lt , details::lt_op )
register_binary_op(details::e_lte , details::lte_op )
register_binary_op(details::e_gt , details::gt_op )
register_binary_op(details::e_gte , details::gte_op )
register_binary_op(details::e_eq , details::eq_op )
register_binary_op(details::e_ne , details::ne_op )
register_binary_op(details::e_and , details::and_op )
register_binary_op(details::e_nand , details::nand_op)
register_binary_op(details::e_or , details::or_op )
register_binary_op(details::e_nor , details::nor_op )
register_binary_op(details::e_xor , details::xor_op )
register_binary_op(details::e_xnor , details::xnor_op)
m.emplace(BinaryFunctor<T>::process,Op); \

//register_binary_op(details::e_add , details::add_op )
//register_binary_op(details::e_sub , details::sub_op )
//register_binary_op(details::e_mul , details::mul_op )
//register_binary_op(details::e_div , details::div_op )
//register_binary_op(details::e_mod , details::mod_op )
//register_binary_op(details::e_pow , details::pow_op )
//register_binary_op(details::e_lt , details::lt_op )
//register_binary_op(details::e_lte , details::lte_op )
//register_binary_op(details::e_gt , details::gt_op )
//register_binary_op(details::e_gte , details::gte_op )
//register_binary_op(details::e_eq , details::eq_op )
//register_binary_op(details::e_ne , details::ne_op )
//register_binary_op(details::e_and , details::and_op )
//register_binary_op(details::e_nand , details::nand_op)
//register_binary_op(details::e_or , details::or_op )
//register_binary_op(details::e_nor , details::nor_op )
//register_binary_op(details::e_xor , details::xor_op )
//register_binary_op(details::e_xnor , details::xnor_op)
#undef register_binary_op

m.emplace(details::and_op<T>::process, details::e_and);
m.emplace(details::or_op<T>::process, details::e_or);
}

inline void load_sf3_map(sf3_map_t& sf3_map)
Expand Down

0 comments on commit cd5ced3

Please sign in to comment.