/external/libcxx/test/std/containers/associative/multiset/multiset.cons/ |
initializer_list_compare.pass.cpp | 24 typedef test_compare<std::less<int> > Cmp; 25 typedef std::multiset<int, Cmp> C; 27 C m({1, 2, 3, 4, 5, 6}, Cmp(10)); 37 assert(m.key_comp() == Cmp(10));
|
initializer_list_compare_alloc.pass.cpp | 25 typedef test_compare<std::less<int> > Cmp; 27 typedef std::multiset<int, Cmp, A> C; 29 C m({1, 2, 3, 4, 5, 6}, Cmp(10), A(4)); 39 assert(m.key_comp() == Cmp(10));
|
/external/libcxx/test/std/containers/associative/set/set.cons/ |
initializer_list_compare.pass.cpp | 24 typedef test_compare<std::less<int> > Cmp; 25 typedef std::set<int, Cmp> C; 27 C m({1, 2, 3, 4, 5, 6}, Cmp(10)); 37 assert(m.key_comp() == Cmp(10));
|
initializer_list_compare_alloc.pass.cpp | 28 typedef test_compare<std::less<int> > Cmp; 30 typedef std::set<int, Cmp, A> C; 32 C m({1, 2, 3, 4, 5, 6}, Cmp(10), A(4)); 42 assert(m.key_comp() == Cmp(10)); 46 typedef test_compare<std::less<int> > Cmp; 48 typedef std::set<int, Cmp, A> C;
|
/external/libcxx/test/std/containers/associative/multimap/multimap.cons/ |
initializer_list_compare.pass.cpp | 26 typedef test_compare<std::less<int> > Cmp; 27 typedef std::multimap<int, double, Cmp> C; 41 Cmp(4) 55 assert(m.key_comp() == Cmp(4)); 58 typedef test_compare<std::less<int> > Cmp; 59 typedef std::multimap<int, double, Cmp, min_allocator<std::pair<const int, double>>> C; 73 Cmp(4) 87 assert(m.key_comp() == Cmp(4));
|
initializer_list_compare_alloc.pass.cpp | 27 typedef test_compare<std::less<int> > Cmp; 29 typedef std::multimap<int, double, Cmp, A> C; 43 Cmp(4), A(5) 57 assert(m.key_comp() == Cmp(4)); 61 typedef test_compare<std::less<int> > Cmp; 63 typedef std::multimap<int, double, Cmp, A> C; 77 Cmp(4), A() 91 assert(m.key_comp() == Cmp(4)); 126 typedef test_compare<std::less<int> > Cmp; 128 typedef std::multimap<int, double, Cmp, A> C [all...] |
/external/tensorflow/tensorflow/core/lib/gtl/ |
top_n.h | 53 // Cmp is an stl binary predicate. Note that Cmp is the "greater" predicate, 61 template <class T, class Cmp = std::greater<T> > 92 explicit TopN(size_t limit) : TopN(limit, Cmp()) {} 93 TopN(size_t limit, const Cmp &cmp) : limit_(limit), cmp_(cmp) {} 181 Cmp *comparator() { return &cmp_; } 201 Cmp cmp_; // Greater-than comparison function 208 template <class T, class Cmp> [all...] |
edit_distance.h | 46 template <typename T, typename Cmp> 48 const gtl::ArraySlice<T>& t, const Cmp& cmp) { 52 if (t_size > s_size) return LevenshteinDistance(t, s, cmp); 79 const int replacement_cost = cmp(s_data[i - 1], t_data[j - 1]) ? 0 : 1; 96 template <typename Container1, typename Container2, typename Cmp> 98 const Cmp& cmp) { 102 cmp);
|
/external/tensorflow/tensorflow/lite/experimental/kernels/ |
top_n.h | 55 // Cmp is an stl binary predicate. Note that Cmp is the "greater" predicate, 63 template <class T, class Cmp = std::greater<T> > 94 explicit TopN(size_t limit) : TopN(limit, Cmp()) {} 95 TopN(size_t limit, const Cmp &cmp) : limit_(limit), cmp_(cmp) {} 183 Cmp *comparator() { return &cmp_; } 203 Cmp cmp_; // Greater-than comparison function 210 template <class T, class Cmp> [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/ |
FunctionComparator.cpp | 116 TestComparator Cmp(F1.F, F2.F, &GN); 118 EXPECT_TRUE(Cmp.testFunctionAccess(F1.F, F2.F)); 119 EXPECT_EQ(Cmp.testCompare(), -1); 120 EXPECT_EQ(Cmp.testCompareSignature(), 0); 121 EXPECT_EQ(Cmp.testCmpBasicBlocks(F1.BB, F2.BB), -1); 122 EXPECT_EQ(Cmp.testCmpConstants(F1.C, F2.C), -1); 123 EXPECT_EQ(Cmp.testCmpGlobalValues(F1.F, F2.F), -1); 124 EXPECT_EQ(Cmp.testCmpValues(F1.I, F2.I), 0); 126 EXPECT_EQ(Cmp.testCmpOperations(F1.I, F2.I, needToCmpOperands), 0); 128 EXPECT_EQ(Cmp.testCmpTypes(F1.T, F2.T), 0) [all...] |
/external/clang/include/clang/Analysis/Analyses/ |
ThreadSafetyTIL.h | 275 // template <class C> typename C::CType compare(CType* E, C& Cmp) { 396 typename C::CType compare(const Variable* E, C& Cmp) const { 397 return Cmp.compareVariableRefs(this, E); 457 typename C::CType compare(const Future* E, C& Cmp) const { 459 return Cmp.comparePointers(this, E); 460 return Cmp.compare(Result, E->Result); 485 typename C::CType compare(const Undefined* E, C& Cmp) const { 486 return Cmp.trueResult(); 507 typename C::CType compare(const Wildcard* E, C& Cmp) const { 508 return Cmp.trueResult() [all...] |
/external/grpc-grpc/test/core/slice/ |
slice_hash_table_test.cc | 144 EXPECT_EQ(0, TestHashTable::Cmp(*table_a, *table_a)); 146 EXPECT_EQ(0, TestHashTable::Cmp(*table_a, *table_b)); 159 EXPECT_GT(TestHashTable::Cmp(*table_a, *table_b), 0); 160 EXPECT_LT(TestHashTable::Cmp(*table_b, *table_a), 0); 173 EXPECT_GT(TestHashTable::Cmp(*table_a, *table_b), 0); 174 EXPECT_LT(TestHashTable::Cmp(*table_b, *table_a), 0); 187 EXPECT_LT(TestHashTable::Cmp(*table_a, *table_b), 0); 188 EXPECT_GT(TestHashTable::Cmp(*table_b, *table_a), 0); 201 EXPECT_NE(TestHashTable::Cmp(*table_a, *table_b), 0); 212 EXPECT_NE(TestHashTable::Cmp(*table_a, *table_b), 0) [all...] |
/external/llvm/lib/Target/AArch64/ |
AArch64ConditionOptimizer.cpp | 34 // cmp w8, #4 38 // cmp w8, #6 45 // cmp w8, #5 49 // cmp w8, #5 // <-- CSE pass removes this instruction 55 // TODO: maybe handle TBNZ/TBZ the same way as CMP when used instead for "a < 0" 101 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp); 103 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To, 146 // Since we may modify cmp of this MBB, make sure NZCV does not live out. 155 // Check if there is any use of NZCV between CMP and Bcc. 159 // cmp is an alias for subs with a dead destination register [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
AArch64ConditionOptimizer.cpp | 34 // cmp w8, #4 38 // cmp w8, #6 45 // cmp w8, #5 49 // cmp w8, #5 // <-- CSE pass removes this instruction 55 // TODO: maybe handle TBNZ/TBZ the same way as CMP when used instead for "a < 0" 112 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp); 114 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To, 155 // Since we may modify cmp of this MBB, make sure NZCV does not live out. 164 // Check if there is any use of NZCV between CMP and Bcc. 168 // cmp is an alias for subs with a dead destination register [all...] |
/external/vixl/examples/aarch64/ |
abs.cc | 38 __ Cmp(x0, 0);
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
HexagonHardwareLoops.cpp | 147 static Kind getSwappedComparison(Kind Cmp) { 148 assert ((!((Cmp & L) && (Cmp & G))) && "Malformed comparison operator"); 149 if ((Cmp & L) || (Cmp & G)) 150 return (Kind)(Cmp ^ (L|G)); 151 return Cmp; 154 static Kind getNegatedComparison(Kind Cmp) { 155 if ((Cmp & L) || (Cmp & G) [all...] |
/external/llvm/lib/IR/ |
IntrinsicInst.cpp | 69 auto Cmp = [CmpStart, CmpEnd](const char *LHS, const char *RHS) { 73 std::tie(Low, High) = std::equal_range(Low, High, Name.data(), Cmp);
|
/external/python/cpython3/Lib/test/ |
test_compare.py | 7 class Cmp: 12 return '<Cmp %s>' % self.arg 25 set1 = [2, 2.0, 2, 2+0j, Cmp(2.0)] 48 a = Cmp(1) 49 b = Cmp(1) 50 c = Cmp(2)
|
/external/llvm/lib/Target/Hexagon/ |
HexagonHardwareLoops.cpp | 119 static Kind getSwappedComparison(Kind Cmp) { 120 assert ((!((Cmp & L) && (Cmp & G))) && "Malformed comparison operator"); 121 if ((Cmp & L) || (Cmp & G)) 122 return (Kind)(Cmp ^ (L|G)); 123 return Cmp; 126 static Kind getNegatedComparison(Kind Cmp) { 127 if ((Cmp & L) || (Cmp & G) [all...] |
/external/swiftshader/third_party/LLVM/lib/Support/ |
Statistic.cpp | 85 int Cmp = std::strcmp(LHS->getName(), RHS->getName()); 86 if (Cmp != 0) return Cmp < 0;
|
/external/grpc-grpc/src/core/lib/security/transport/ |
target_authority_table.cc | 44 return TargetAuthorityTable::Cmp(
|
/external/llvm/lib/Support/ |
Statistic.cpp | 108 if (int Cmp = std::strcmp(LHS->getDebugType(), RHS->getDebugType())) 109 return Cmp < 0; 111 if (int Cmp = std::strcmp(LHS->getName(), RHS->getName())) 112 return Cmp < 0;
|
/external/vixl/examples/aarch32/ |
abs.cc | 36 __ Cmp(r0, 0);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_compare.py | 21 class Cmp:
26 return '<Cmp %s>' % self.arg
29 return cmp(self.arg, other)
32 set1 = [2, 2.0, 2L, 2+0j, Coerce(2), Cmp(2.0)]
51 self.assertEqual(cmp(a, b), cmp(id(a), id(b)),
|
/external/python/cpython2/Lib/test/ |
test_compare.py | 21 class Cmp: 26 return '<Cmp %s>' % self.arg 29 return cmp(self.arg, other) 32 set1 = [2, 2.0, 2L, 2+0j, Coerce(2), Cmp(2.0)] 51 self.assertEqual(cmp(a, b), cmp(id(a), id(b)),
|