/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 228 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/ |
D | MathExtrasTest.cpp | 272 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/ |
D | fixedpoint.h | 236 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()));
|
D | fixedpoint_neon.h | 325 inline int16x8_t SaturatingAdd(int16x8_t a, int16x8_t b) {
|
D | fixedpoint_msa.h | 347 inline v8i16 SaturatingAdd(v8i16 a, v8i16 b) {
|
D | fixedpoint_sse.h | 378 inline int16x8_m128i SaturatingAdd(int16x8_m128i a, int16x8_m128i b) {
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 699 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/ |
D | CGProfile.cpp | 37 Count = SaturatingAdd(Count, NewCount); in run()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | MathExtras.h | 758 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/ |
D | MathExtras.h | 776 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/ |
D | InstrProf.h | 721 TotalCount = SaturatingAdd(TotalCount, V.Count); in getValueForSite()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/ |
D | InstrProf.h | 825 TotalCount = SaturatingAdd(TotalCount, V.Count); in getValueForSite()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | ModuleSummaryIndex.h | 96 SaturatingAdd<uint64_t>(Temp.toInt<uint64_t>(), RelBlockFreq); in updateRelBlockFreq()
|
/external/llvm/lib/Analysis/ |
D | InlineCost.cpp | 354 AllocatedSize = SaturatingAdd(DL.getTypeAllocSize(Ty), AllocatedSize); in visitAlloca()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InlineCost.cpp | 435 AllocatedSize = SaturatingAdd(DL.getTypeAllocSize(Ty), AllocatedSize); in visitAlloca()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 2917 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/ |
D | optimized_ops.h | 3030 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/ |
D | reference_ops.h | 677 F0 result = gemmlowp::SaturatingAdd(scaled_input, input_ready_scaled); in Add() 2197 FS new_state = gemmlowp::SaturatingAdd( in LstmCell()
|