Searched refs:WrappingType (Results 1 – 3 of 3) sorted by relevance
65 using WrappingType = Wrapping<ElementType>; in Aadd() local66 WrappingType x{unwrapped_x}; in Aadd()67 WrappingType y{unwrapped_y}; in Aadd()68 WrappingType same_bits = x & y; in Aadd()69 WrappingType different_bits = x ^ y; in Aadd()70 WrappingType different_bits_average = different_bits >> WrappingType{1}; in Aadd()71 WrappingType result = same_bits + different_bits_average; in Aadd()74 result += (different_bits & WrappingType{1}); in Aadd()77 result += (result & different_bits & WrappingType{1}); in Aadd()82 result |= (different_bits & WrappingType{1}); in Aadd()[all …]
202 static_assert(std::is_same_v<Int16, WrappingType<Int16>>);203 static_assert(std::is_same_v<UInt16, WrappingType<UInt16>>);204 static_assert(std::is_same_v<Int16, WrappingType<SatInt16>>);205 static_assert(std::is_same_v<UInt16, WrappingType<SatUInt16>>);
826 using WrappingType = decltype(BitCastToWrapping(std::declval<T>())); variable