Home
last modified time | relevance | path

Searched refs:SaturatingAdd (Results 1 – 18 of 18) sorted by relevance

/external/llvm/unittests/Support/
DMathExtrasTest.cpp228 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2))); in SaturatingAddTestHelper()
229 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper()
232 EXPECT_EQ(Max, SaturatingAdd(Max, T(1))); in SaturatingAddTestHelper()
233 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper()
236 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1))); in SaturatingAddTestHelper()
237 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper()
240 EXPECT_EQ(Max, SaturatingAdd(T(1), Max)); in SaturatingAddTestHelper()
241 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper()
244 EXPECT_EQ(Max, SaturatingAdd(Max, Max)); in SaturatingAddTestHelper()
245 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DMathExtrasTest.cpp272 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2))); in SaturatingAddTestHelper()
273 EXPECT_EQ(T(3), SaturatingAdd(T(1), T(2), &ResultOverflowed)); in SaturatingAddTestHelper()
276 EXPECT_EQ(Max, SaturatingAdd(Max, T(1))); in SaturatingAddTestHelper()
277 EXPECT_EQ(Max, SaturatingAdd(Max, T(1), &ResultOverflowed)); in SaturatingAddTestHelper()
280 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1))); in SaturatingAddTestHelper()
281 EXPECT_EQ(Max, SaturatingAdd(T(1), T(Max - 1), &ResultOverflowed)); in SaturatingAddTestHelper()
284 EXPECT_EQ(Max, SaturatingAdd(T(1), Max)); in SaturatingAddTestHelper()
285 EXPECT_EQ(Max, SaturatingAdd(T(1), Max, &ResultOverflowed)); in SaturatingAddTestHelper()
288 EXPECT_EQ(Max, SaturatingAdd(Max, Max)); in SaturatingAddTestHelper()
289 EXPECT_EQ(Max, SaturatingAdd(Max, Max, &ResultOverflowed)); in SaturatingAddTestHelper()
[all …]
/external/gemmlowp/fixedpoint/
Dfixedpoint.h236 IntegerType SaturatingAdd(IntegerType a, IntegerType b) {
243 inline std::int16_t SaturatingAdd(std::int16_t a, std::int16_t b) {
259 return SaturatingAdd(a, b);
619 FixedPoint<tRawType, tIntegerBits> SaturatingAdd(
623 SaturatingAdd(a.raw(), b.raw()));
Dfixedpoint_neon.h325 inline int16x8_t SaturatingAdd(int16x8_t a, int16x8_t b) {
Dfixedpoint_msa.h347 inline v8i16 SaturatingAdd(v8i16 a, v8i16 b) {
Dfixedpoint_sse.h378 inline int16x8_m128i SaturatingAdd(int16x8_m128i a, int16x8_m128i b) {
/external/llvm/include/llvm/Support/
DMathExtras.h699 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) {
752 return SaturatingAdd(Z, Y, ResultOverflowed);
773 return SaturatingAdd(A, Product, &Overflowed);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DCGProfile.cpp37 Count = SaturatingAdd(Count, NewCount); in run()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h758 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) {
810 return SaturatingAdd(Z, Y, ResultOverflowed);
829 return SaturatingAdd(A, Product, &Overflowed);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMathExtras.h776 SaturatingAdd(T X, T Y, bool *ResultOverflowed = nullptr) {
828 return SaturatingAdd(Z, Y, ResultOverflowed);
847 return SaturatingAdd(A, Product, &Overflowed);
/external/llvm/include/llvm/ProfileData/
DInstrProf.h721 TotalCount = SaturatingAdd(TotalCount, V.Count); in getValueForSite()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DInstrProf.h825 TotalCount = SaturatingAdd(TotalCount, V.Count); in getValueForSite()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DModuleSummaryIndex.h96 SaturatingAdd<uint64_t>(Temp.toInt<uint64_t>(), RelBlockFreq); in updateRelBlockFreq()
/external/llvm/lib/Analysis/
DInlineCost.cpp354 AllocatedSize = SaturatingAdd(DL.getTypeAllocSize(Ty), AllocatedSize); in visitAlloca()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInlineCost.cpp435 AllocatedSize = SaturatingAdd(DL.getTypeAllocSize(Ty), AllocatedSize); in visitAlloca()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Doptimized_ops.h2917 F0 result = gemmlowp::SaturatingAdd(scaled_input, input_ready_scaled); in Add()
3859 FS new_state = gemmlowp::SaturatingAdd( in LstmCell()
3928 FS new_state = gemmlowp::SaturatingAdd( in LstmCell()
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/
Doptimized_ops.h3030 F0 result = gemmlowp::SaturatingAdd(scaled_input, input_ready_scaled); in Add()
3975 FS new_state = gemmlowp::SaturatingAdd( in LstmCell()
4044 FS new_state = gemmlowp::SaturatingAdd( in LstmCell()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dreference_ops.h677 F0 result = gemmlowp::SaturatingAdd(scaled_input, input_ready_scaled); in Add()
2197 FS new_state = gemmlowp::SaturatingAdd( in LstmCell()