Home | History | Annotate | Download | only in Tensor

Lines Matching defs:LOW

31 template <typename HIGH = uint64_t, typename LOW = uint64_t>
35 LOW low;
39 TensorUInt128(const TensorUInt128<OTHER_HIGH, OTHER_LOW>& other) : high(other.high), low(other.low) {
41 EIGEN_STATIC_ASSERT(sizeof(OTHER_LOW) <= sizeof(LOW), YOU_MADE_A_PROGRAMMING_MISTAKE);
48 EIGEN_STATIC_ASSERT(sizeof(OTHER_LOW) <= sizeof(LOW), YOU_MADE_A_PROGRAMMING_MISTAKE);
50 low = other.low;
56 explicit TensorUInt128(const T& x) : high(0), low(x) {
62 TensorUInt128(HIGH y, LOW x) : high(y), low(x) { }
64 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE operator LOW() const {
65 return low;
67 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE LOW lower() const {
68 return low;
80 return (lhs.high == rhs.high) & (lhs.low == rhs.low);
87 return (lhs.high != rhs.high) | (lhs.low != rhs.low);
97 return lhs.low >= rhs.low;
107 return lhs.low < rhs.low;
114 TensorUInt128<uint64_t, uint64_t> result(lhs.high + rhs.high, lhs.low + rhs.low);
115 if (result.low < rhs.low) {
125 TensorUInt128<uint64_t, uint64_t> result(lhs.high - rhs.high, lhs.low - rhs.low);
126 if (result.low > lhs.low) {
146 // The result is stored in 2 64bit integers, high and low.
148 const uint64_t LOW = 0x00000000FFFFFFFFLL;
151 uint64_t d = lhs.low & LOW;
152 uint64_t c = (lhs.low & HIGH) >> 32LL;
153 uint64_t b = lhs.high & LOW;
156 uint64_t h = rhs.low & LOW;
157 uint64_t g = (rhs.low & HIGH) >> 32LL;
158 uint64_t f = rhs.high & LOW;
161 // Compute the low 32 bits of low
163 uint64_t low = acc & LOW;
164 // Compute the high 32 bits of low. Add a carry every time we wrap around
175 low |= (acc << 32LL);
178 // low 32 bits of high
194 uint64_t high = acc & LOW;
205 return TensorUInt128<uint64_t, uint64_t>(high, low);
213 return TensorUInt128<uint64_t, uint64_t>(lhs.high, lhs.low);
227 tmp = TensorUInt128<uint64_t, uint64_t>(lhs.high, lhs.low);
235 power2 = TensorUInt128<uint64_t, uint64_t>(power2.high >> 1, (power2.low >> 1) | (power2.high << 63));
236 d = TensorUInt128<uint64_t, uint64_t>(d.high >> 1, (d.low >> 1) | (d.high << 63));