Home
last modified time | relevance | path

Searched refs:WrappingType (Results 1 – 3 of 3) sorted by relevance

/frameworks/libs/binary_translation/intrinsics/include/berberis/intrinsics/
Dintrinsics_fixed_point_impl.h65 using WrappingType = Wrapping<ElementType>; in Aadd() local
66 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 …]
/frameworks/libs/binary_translation/base/
Dbit_util_test.cc202 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>>);
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h826 using WrappingType = decltype(BitCastToWrapping(std::declval<T>())); variable