Home
last modified time | relevance | path

Searched full:comparison (Results 1 – 25 of 7414) sorted by relevance

12345678910>>...297

/external/tensorflow/tensorflow/compiler/xla/
Dcomparison_util_test.cc28 bool Equal(const Comparison& a, const Comparison& b) { in Equal()
34 TEST(Comparison, FloatsDefaultToPartialOrder) { in TEST() argument
36 Comparison(Comparison::Direction::kGe, PrimitiveType::BF16).GetOrder(), in TEST()
37 Comparison::Order::kPartial); in TEST()
39 Comparison(Comparison::Direction::kGe, PrimitiveType::F32).GetOrder(), in TEST()
40 Comparison::Order::kPartial); in TEST()
42 Comparison(Comparison::Direction::kGe, PrimitiveType::C64).GetOrder(), in TEST()
43 Comparison::Order::kPartial); in TEST()
46 TEST(Comparison, IntegersDefaultToTotalOrder) { in TEST() argument
48 Comparison(Comparison::Direction::kGe, PrimitiveType::S32).GetOrder(), in TEST()
[all …]
Dcomparison_util.cc31 // Verifies that this is a valid Comparison: (1) not a partial ordering on
33 bool IsValidComparison(xla::PrimitiveType type, Comparison::Order order) { in IsValidComparison()
51 return order == Comparison::Order::kTotal; in IsValidComparison()
63 PrimitiveType DefaultPrimitiveType(Comparison::Type type) { in DefaultPrimitiveType()
65 case Comparison::Type::kFloat: in DefaultPrimitiveType()
66 case Comparison::Type::kFloatTotalOrder: in DefaultPrimitiveType()
68 case Comparison::Type::kSigned: in DefaultPrimitiveType()
70 case Comparison::Type::kUnsigned: in DefaultPrimitiveType()
75 // Returns the default ordering for each Comparison::Type.
76 Comparison::Order DefaultOrdering(Comparison::Type type) { in DefaultOrdering()
[all …]
Dcomparison_util.h34 // A utility class for primitive comparisons. A comparison includes three
36 // it is a partial or total order comparison, and the actual comparison operator
44 // Comparison a(
45 // Comparison::Direction::kLt,
47 // Comparison::Order::kTotal
51 // Comparison b(Comparison::Direction::kEq, xla::PrimitiveType::U32);
53 class Comparison {
55 // Represents the ordering of the comparison.
63 // Represents different comparison operations.
73 // (DEPRECATED) Represents the type of comparison. Prefer xla::PrimitiveType
[all …]
/external/clang/test/SemaCXX/
Dwarn-enum-compare.cpp42 …while (x == AnonAA); // expected-warning {{comparison of constant 'AnonAA' (42) with expression of… in test()
43 …while (AnonBB == y); // expected-warning {{comparison of constant 'AnonBB' (45) with expression of… in test()
68 …while (B1 == B2); // expected-warning {{comparison of two values with different enumeration types… in test()
69 …while (name1::B2 == name2::B3); // expected-warning {{comparison of two values with different enu… in test()
70 …while (z == name2::B2); // expected-warning {{comparison of two values with different enumeration… in test()
72 …while (((((B1)))) == B2); // expected-warning {{comparison of two values with different enumerati… in test()
73 …while (name1::B2 == (name2::B3)); // expected-warning {{comparison of two values with different e… in test()
74 …while (z == ((((name2::B2))))); // expected-warning {{comparison of two values with different enu… in test()
76 …while ((((B1))) == (((B2)))); // expected-warning {{comparison of two values with different enume… in test()
77 …while ((name1::B2) == (((name2::B3)))); // expected-warning {{comparison of two values with diffe… in test()
[all …]
Dwarn-unused-comparison.cpp1 // RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -verify -Wno-unused -Wunused-comparison %s
18 x == 7; // expected-warning {{equality comparison result unused}} \ in test()
19 // expected-note {{use '=' to turn this equality comparison into an assignment}} in test()
20 x != 7; // expected-warning {{inequality comparison result unused}} \ in test()
21 // expected-note {{use '|=' to turn this inequality comparison into an or-assignment}} in test()
22 x < 7; // expected-warning {{relational comparison result unused}} in test()
23 x > 7; // expected-warning {{relational comparison result unused}} in test()
24 x <= 7; // expected-warning {{relational comparison result unused}} in test()
25 x >= 7; // expected-warning {{relational comparison result unused}} in test()
27 7 == x; // expected-warning {{equality comparison result unused}} in test()
[all …]
Dcompare.cpp12 … (a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs}} in test0()
16 ((long) a == b) + // expected-warning {{comparison of integers of different signs}} in test0()
17 ((int) a == b) + // expected-warning {{comparison of integers of different signs}} in test0()
18 ((short) a == b) + // expected-warning {{comparison of integers of different signs}} in test0()
19 ((signed char) a == b) + // expected-warning {{comparison of integers of different signs}} in test0()
20 …((long) a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs… in test0()
21 … ((int) a == (unsigned int) b) + // expected-warning {{comparison of integers of different signs}} in test0()
24 … (a < (unsigned long) b) + // expected-warning {{comparison of integers of different signs}} in test0()
28 ((long) a < b) + // expected-warning {{comparison of integers of different signs}} in test0()
29 ((int) a < b) + // expected-warning {{comparison of integers of different signs}} in test0()
[all …]
Dbool-compare.cpp8 …if(b > true) {} // expected-warning {{comparison of true with expression of type 'bool' is alwa… in f()
11 …if(b <= true) {} // expected-warning {{comparison of true with expression of type 'bool' is alwa… in f()
16 …if(b < false) {} // expected-warning {{comparison of false with expression of type 'bool' is alw… in f()
17 …if(b >= false) {} // expected-warning {{comparison of false with expression of type 'bool' is alw… in f()
22 …if(b > 1U){} // expected-warning {{comparison of constant 1 with expression of type 'bool' is alwa… in f()
32 …if (a > 1) {} // expected-warning {{comparison of constant 1 with expression of type 'bool' is alw… in f()
33 …if (a > 2) {} // expected-warning {{comparison of constant 2 with expression of type 'bool' is alw… in f()
35 …if (a >= 0) {} // expected-warning {{comparison of constant 0 with expression of type 'bool' is al… in f()
37 …if (a >= 2) {} // expected-warning {{comparison of constant 2 with expression of type 'bool' is al… in f()
38 …if (a >= -1) {} // expected-warning {{comparison of constant -1 with expression of type 'bool' is … in f()
[all …]
Dwarn-tautological-undefined-compare.cpp9 …cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed t… in test1()
11 …cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed t… in test1()
19 …// expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; comparison may be … in foo()
21 …// expected-warning@-1{{'this' pointer cannot be null in well-defined C++ code; comparison may be … in foo()
27 …cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed t… in bar()
29 …cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed t… in bar()
49 …cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed t… in test()
51 …cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed t… in test()
54 …cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed t… in test()
56 …cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed t… in test()
[all …]
Dwarn-tautological-compare.cpp15 …// expected-warning@-1{{comparison of constant 2147483647 with expression of type 'short' is alway… in test0()
20 …// expected-warning@-1{{comparison of constant 2147483647 with expression of type 'short' is alway… in test1()
44 // expected-warning@-1{{comparison of array 'b' equal to a null pointer is always false}} in test()
46 // expected-warning@-1{{comparison of array 'b' not equal to a null pointer is always true}} in test()
48 // expected-warning@-1{{comparison of array 'b' equal to a null pointer is always false}} in test()
50 // expected-warning@-1{{comparison of array 'b' not equal to a null pointer is always true}} in test()
52 // expected-warning@-1{{comparison of array 'c.x' equal to a null pointer is always false}} in test()
54 // expected-warning@-1{{comparison of array 'c.x' not equal to a null pointer is always true}} in test()
56 // expected-warning@-1{{comparison of array 'str' equal to a null pointer is always false}} in test()
58 // expected-warning@-1{{comparison of array 'str' not equal to a null pointer is always true}} in test()
[all …]
Dwarn-assignment-condition.cpp16 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
21 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
26 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
31 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
36 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
41 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
46 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
50 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
62 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
67 // expected-note{{use '==' to turn this assignment into an equality comparison}} \ in test()
[all …]
Dwarn-logical-not-compare.cpp11 // expected-warning@-1 {{logical not is only applied to the left hand side of this comparison}} in test1()
12 // expected-note@-2 {{add parentheses after the '!' to evaluate the comparison first}} in test1()
15 // CHECK: to evaluate the comparison first in test1()
23 //expected-warning@-1 {{logical not is only applied to the left hand side of this comparison}} in test1()
24 // expected-note@-2 {{add parentheses after the '!' to evaluate the comparison first}} in test1()
27 // CHECK: to evaluate the comparison first in test1()
35 //expected-warning@-1 {{logical not is only applied to the left hand side of this comparison}} in test1()
36 // expected-note@-2 {{add parentheses after the '!' to evaluate the comparison first}} in test1()
39 // CHECK: to evaluate the comparison first in test1()
47 //expected-warning@-1 {{logical not is only applied to the left hand side of this comparison}} in test1()
[all …]
/external/webrtc/test/pc/e2e/analyzer/video/
Ddefault_video_quality_analyzer_frames_comparator.cc57 FrameComparison ValidateFrameComparison(FrameComparison comparison) { in ValidateFrameComparison() argument
58 RTC_DCHECK(comparison.frame_stats.captured_time.IsFinite()) in ValidateFrameComparison()
59 << "Any comparison has to have finite captured_time"; in ValidateFrameComparison()
60 switch (comparison.type) { in ValidateFrameComparison()
62 // Regular comparison has to have all FrameStats filled in. in ValidateFrameComparison()
63 RTC_DCHECK(comparison.captured.has_value() || in ValidateFrameComparison()
64 comparison.overload_reason != OverloadReason::kNone) in ValidateFrameComparison()
65 << "Regular comparison has to have captured frame if it's not " in ValidateFrameComparison()
66 << "overloaded comparison"; in ValidateFrameComparison()
67 RTC_DCHECK(comparison.rendered.has_value() || in ValidateFrameComparison()
[all …]
/external/stg/
Dreporting.cc37 #include "comparison.h"
90 // Prints a comparison to the given output stream. The comparison is printed
94 // It returns true if the comparison denotes addition or removal of a node.
95 bool PrintComparison(const Reporting& reporting, const Comparison& comparison, in PrintComparison() argument
102 const auto id1 = comparison.first; in PrintComparison()
103 const auto id2 = comparison.second; in PrintComparison()
106 << "internal error: Attempt to print comparison with nothing to compare."; in PrintComparison()
142 using Seen = std::unordered_map<Comparison, bool, HashComparison>;
148 void Report(const Comparison&);
155 void Print(const Comparison&, size_t, const std::string&);
[all …]
Dcomparison.h86 using Comparison = std::pair<std::optional<Id>, std::optional<Id>>; variable
89 DiffDetail(const std::string& text, const std::optional<Comparison>& edge) in DiffDetail()
92 std::optional<Comparison> edge_;
104 const std::optional<Comparison>& comparison) { in Add()
105 details.emplace_back(text, comparison); in Add()
165 void AddEdgeDiff(const std::string& text, const Comparison& comparison) { in AddEdgeDiff()
167 diff_.Add(text, {comparison}); in AddEdgeDiff()
170 // Used when an edge to a possible comparison is present.
172 const std::pair<bool, std::optional<Comparison>>& p) { in MaybeAddEdgeDiff()
174 const auto& comparison = p.second; in MaybeAddEdgeDiff() local
[all …]
/external/clang/test/Sema/
Doutof-range-constant-compare.c9 …if (a == 0x1234567812345678L) // expected-warning {{comparison of constant 1311768465173141112 wit… in main()
11 …if (a != 0x1234567812345678L) // expected-warning {{comparison of constant 1311768465173141112 wit… in main()
13 …if (a < 0x1234567812345678L) // expected-warning {{comparison of constant 1311768465173141112 wit… in main()
15 …if (a <= 0x1234567812345678L) // expected-warning {{comparison of constant 1311768465173141112 wi… in main()
17 …if (a > 0x1234567812345678L) // expected-warning {{comparison of constant 1311768465173141112 wit… in main()
19 …if (a >= 0x1234567812345678L) // expected-warning {{comparison of constant 1311768465173141112 wi… in main()
22 …if (0x1234567812345678L == a) // expected-warning {{comparison of constant 1311768465173141112 wit… in main()
24 …if (0x1234567812345678L != a) // expected-warning {{comparison of constant 1311768465173141112 wit… in main()
26 …if (0x1234567812345678L < a) // expected-warning {{comparison of constant 1311768465173141112 wit… in main()
28 …if (0x1234567812345678L <= a) // expected-warning {{comparison of constant 1311768465173141112 wi… in main()
[all …]
Dbool-compare.c8 …if ((a > 2) > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alwa… in f()
33 …if (!a > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alway… in f()
34 …if (!a > 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
37 …if (!a > -1) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
39 …if (!a < 0) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
41 …if (!a < 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
44 …if (!a < -1) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
46 …if (!a >= 0) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
48 …if (!a >= 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
51 …if (!a >= -1) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
[all …]
Dcompare.c7 …return C != 1; // expected-warning {{comparison between pointer and integer ('char *' and 'int')}} in test()
16 … (a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs}} in ints()
20 ((long) a == b) + // expected-warning {{comparison of integers of different signs}} in ints()
21 ((int) a == b) + // expected-warning {{comparison of integers of different signs}} in ints()
22 ((short) a == b) + // expected-warning {{comparison of integers of different signs}} in ints()
23 ((signed char) a == b) + // expected-warning {{comparison of integers of different signs}} in ints()
24 …((long) a == (unsigned long) b) + // expected-warning {{comparison of integers of different signs… in ints()
25 … ((int) a == (unsigned int) b) + // expected-warning {{comparison of integers of different signs}} in ints()
28 … (a < (unsigned long) b) + // expected-warning {{comparison of integers of different signs}} in ints()
32 ((long) a < b) + // expected-warning {{comparison of integers of different signs}} in ints()
[all …]
Dself-comparison.c4 return x == x; // expected-warning {{self-comparison always evaluates to true}} in foo()
8 return (x) != (((x))); // expected-warning {{self-comparison always evaluates to false}} in foo2()
12 if (s == s) {} // expected-warning {{self-comparison always evaluates to true}} in foo3()
17 if (v == v) {} // expected-warning {{self-comparison always evaluates to true}} in foo4()
22 return x < x; // expected-warning {{self-comparison}} in qux()
26 return x > x; // expected-warning {{self-comparison}} in qux2()
55 return array1 == array1; // expected-warning{{self-comparison always evaluates to true}} in array_comparisons()
56 return array1 != array1; // expected-warning{{self-comparison always evaluates to false}} in array_comparisons()
57 return array1 < array1; // expected-warning{{self-comparison always evaluates to false}} in array_comparisons()
58 return array1 <= array1; // expected-warning{{self-comparison always evaluates to true}} in array_comparisons()
[all …]
Dwarn-logical-not-compare.c10 // expected-warning@-1 {{logical not is only applied to the left hand side of this comparison}} in test1()
11 // expected-note@-2 {{add parentheses after the '!' to evaluate the comparison first}} in test1()
14 // CHECK: to evaluate the comparison first in test1()
22 //expected-warning@-1 {{logical not is only applied to the left hand side of this comparison}} in test1()
23 // expected-note@-2 {{add parentheses after the '!' to evaluate the comparison first}} in test1()
26 // CHECK: to evaluate the comparison first in test1()
34 //expected-warning@-1 {{logical not is only applied to the left hand side of this comparison}} in test1()
35 // expected-note@-2 {{add parentheses after the '!' to evaluate the comparison first}} in test1()
38 // CHECK: to evaluate the comparison first in test1()
46 //expected-warning@-1 {{logical not is only applied to the left hand side of this comparison}} in test1()
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/builder/
DCompareToBuilder.java40 * comparison. Derived fields may be ignored. The same fields, in the same
66 * <p>Values are compared in the order they are appended to the builder. If any comparison returns
100 * Current state of the comparison as appended fields are checked.
102 private int comparison; field in CompareToBuilder
112 comparison = 0; in CompareToBuilder()
302 * Appends to {@code builder} the comparison of {@code lhs}
322 for (int i = 0; i < fields.length && builder.comparison == 0; i++) { in reflectionAppend()
348 if (comparison != 0) { in appendSuper()
351 comparison = superCompareTo; in appendSuper()
356 * Appends to the {@code builder} the comparison of
[all …]
/external/sdv/vsomeip/third_party/boost/regex/test/regress/
Dtest_operators.cpp25 BOOST_REGEX_TEST_ERROR("Failed < comparison", char); in test_less()
29 BOOST_REGEX_TEST_ERROR("Failed <= comparison", char); in test_less()
33 BOOST_REGEX_TEST_ERROR("Failed != comparison", char); in test_less()
37 BOOST_REGEX_TEST_ERROR("Failed == comparison", char); in test_less()
41 BOOST_REGEX_TEST_ERROR("Failed >= comparison", char); in test_less()
45 BOOST_REGEX_TEST_ERROR("Failed > comparison", char); in test_less()
54 BOOST_REGEX_TEST_ERROR("Failed < comparison", char); in test_greater()
58 BOOST_REGEX_TEST_ERROR("Failed <= comparison", char); in test_greater()
62 BOOST_REGEX_TEST_ERROR("Failed != comparison", char); in test_greater()
66 BOOST_REGEX_TEST_ERROR("Failed == comparison", char); in test_greater()
[all …]
/external/clang/test/SemaObjC/
Dobjc-literal-comparison.m39 …if (obj == @"") return; // expected-warning{{direct comparison of a string literal has undefined b…
40 …if (obj != @"") return; // expected-warning{{direct comparison of a string literal has undefined b…
41 …if (@"" == obj) return; // expected-warning{{direct comparison of a string literal has undefined b…
42 …if (@"" == @"") return; // expected-warning{{direct comparison of a string literal has undefined b…
44 …if (@[] == obj) return; // expected-warning{{direct comparison of an array literal has undefined b…
45 …if (@{} == obj) return; // expected-warning{{direct comparison of a dictionary literal has undefin…
46 …if (@12 == obj) return; // expected-warning{{direct comparison of a numeric literal has undefined …
47 …if (@1.0 == obj) return; // expected-warning{{direct comparison of a numeric literal has undefined…
48 …if (@__objc_yes == obj) return; // expected-warning{{direct comparison of a numeric literal has un…
49 …if (@(1+1) == obj) return; // expected-warning{{direct comparison of a boxed expression has undefi…
[all …]
Dcomptypes-7.m49 …if (obj == i) foo() ; // expected-warning {{comparison between pointer and integer ('id' and 'int'…
50 …if (i == obj) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'id'…
51 …if (obj == j) foo() ; // expected-warning {{comparison of distinct pointer types ('id' and 'int *'…
52 …if (j == obj) foo() ; // expected-warning {{comparison of distinct pointer types ('int *' and 'id'…
54 …if (obj_c == i) foo() ; // expected-warning {{comparison between pointer and integer ('MyClass *' …
55 …if (i == obj_c) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'M…
56 …if (obj_c == j) foo() ; // expected-warning {{comparison of distinct pointer types ('MyClass *' an…
57 …if (j == obj_c) foo() ; // expected-warning {{comparison of distinct pointer types ('int *' and 'M…
59 …if (obj_p == i) foo() ; // expected-warning {{comparison between pointer and integer ('id<MyProtoc…
60 …if (i == obj_p) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'i…
[all …]
/external/stg/doc/
DDIFFS.md9 1. comparison - generating difference graphs
15 changes to the comparison code
23 There are 3 kinds of node difference and each node comparison pair can have any
33 removal, they do not occur naturally during pairwise comparison.
35 ## Comparison Implementation
37 Comparison is mostly done pair-wise recursively with a DFS, by the function
47 presence of cycles in the diff comparison graph.
59 In general we want each comparison operator to be as small as possible,
85 * revisited, in-progress comparison
95 #### Revisited Nodes and Recursive Comparison
[all …]
/external/oboe/samples/RhythmGame/third_party/glm/gtx/
Dassociated_min_max.hpp27 /// Minimum comparison between 2 variables and returns 2 associated variable values
32 /// Minimum comparison between 2 variables and returns 2 associated variable values
39 /// Minimum comparison between 2 variables and returns 2 associated variable values
46 /// Minimum comparison between 2 variables and returns 2 associated variable values
53 /// Minimum comparison between 3 variables and returns 3 associated variable values
61 /// Minimum comparison between 3 variables and returns 3 associated variable values
69 /// Minimum comparison between 4 variables and returns 4 associated variable values
78 /// Minimum comparison between 4 variables and returns 4 associated variable values
87 /// Minimum comparison between 4 variables and returns 4 associated variable values
96 /// Minimum comparison between 4 variables and returns 4 associated variable values
[all …]

12345678910>>...297