#include <TensorIntDiv.h>
◆ UnsignedType
template<typename T , bool div_gt_one = false>
◆ TensorIntDivisor() [1/2]
template<typename T , bool div_gt_one = false>
◆ TensorIntDivisor() [2/2]
template<typename T , bool div_gt_one = false>
158 int log_div =
N - leading_zeros;
165 shift1 = log_div > 1 ? 1 : log_div;
166 shift2 = log_div > 1 ? log_div - 1 : 0;
#define eigen_assert(x)
Definition: Macros.h:910
@ N
Definition: constructor.cpp:22
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE std::enable_if_t< sizeof(T)==4, int > count_leading_zeros(const T val)
Definition: TensorIntDiv.h:35
static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE uint32_t computeMultiplier(const int log_div, const T divider)
Definition: TensorIntDiv.h:116
static constexpr int N
Definition: TensorIntDiv.h:84
DividerTraits< T >::type UnsignedType
Definition: TensorIntDiv.h:181
std::conditional_t< sizeof(T)==8, uint64_t, uint32_t > type
Definition: TensorIntDiv.h:78
References Eigen::internal::DividerHelper< N, T >::computeMultiplier(), Eigen::internal::count_leading_zeros(), eigen_assert, Eigen::internal::TensorIntDivisor< T, div_gt_one >::multiplier, N, Eigen::internal::TensorIntDivisor< T, div_gt_one >::shift1, and Eigen::internal::TensorIntDivisor< T, div_gt_one >::shift2.
◆ divide()
template<typename T , bool div_gt_one = false>
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE uint32_t muluh(const uint32_t a, const T b)
Definition: TensorIntDiv.h:88
t
Definition: plotPSD.py:36
References eigen_assert, Eigen::internal::TensorIntDivisor< T, div_gt_one >::multiplier, Eigen::internal::muluh(), Eigen::internal::TensorIntDivisor< T, div_gt_one >::shift1, Eigen::internal::TensorIntDivisor< T, div_gt_one >::shift2, and plotPSD::t.
Referenced by Eigen::internal::operator/(), test_powers_32bit(), test_powers_64bit(), and test_specific().
◆ multiplier
template<typename T , bool div_gt_one = false>
◆ shift1
template<typename T , bool div_gt_one = false>
◆ shift2
template<typename T , bool div_gt_one = false>
The documentation for this struct was generated from the following file: