Home
last modified time | relevance | path

Searched refs:log_div (Results 1 – 2 of 2) sorted by relevance

/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorIntDiv.h110 …static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE uint32_t computeMultiplier(const int log_div, const T… in computeMultiplier()
112 …return static_cast<uint32_t>((static_cast<uint64_t>(1) << (N+log_div)) / divider - (static_cast<ui… in computeMultiplier()
118 …static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE uint64_t computeMultiplier(const int log_div, const T…
120 …return static_cast<uint64_t>((static_cast<__uint128_t>(1) << (64+log_div)) / static_cast<__uint128…
122 const uint64_t shift = 1ULL << log_div;
152 int log_div = N - leading_zeros;
154 …if ((static_cast<typename UnsignedTraits<T>::type>(1) << (log_div-1)) == static_cast<typename Unsi…
155 log_div--;
157 multiplier = DividerHelper<N, T>::computeMultiplier(log_div, divider);
158 shift1 = log_div > 1 ? 1 : log_div;
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_uint128.cpp133 for (int64_t log_div = 0; log_div < 63; ++log_div) { in test_misc2() local
135 …uint64_t expected = (static_cast<uint128_t>(1) << (64+log_div)) / static_cast<uint128_t>(divider) … in test_misc2()
136 uint64_t shift = 1ULL << log_div; in test_misc2()