| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/21_strings/ |
| H A D | compare.cc | 92 test_value(str_0.compare(str_1), gt); //because r>m in test01() 93 test_value(str_1.compare(str_0), lt); //because m<r in test01() 95 test_value(str_2.compare(str_0), z); in test01() 97 test_value(str_2.compare(str_0), lt); in test01() 99 test_value(str_2.compare(str_0), gt); in test01() 102 test_value(str_1.compare(0, 6, str_0), lt); in test01() 104 test_value(str_1.compare(0, 4, str_2), z); in test01() 105 test_value(str_1.compare(0, 5, str_2), gt); in test01() 109 test_value(str_1.compare(0, 6, str_0, 0, 6), z); in test01() 110 test_value(str_1.compare(0, 7, str_0, 0, 7), lt); in test01() [all …]
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/22_locale/ |
| H A D | collate_byname.cc | 59 i1 = coll_de.compare(strlit3, strlit3 + size3, strlit3, strlit3 + 7); in test01() 61 i1 = coll_de.compare(strlit3, strlit3 + 7, strlit3, strlit3 + size3); in test01() 63 i1 = coll_de.compare(strlit3, strlit3 + 7, strlit3, strlit3 + 7); in test01() 66 i1 = coll_de.compare(strlit3, strlit3 + 6, strlit3 + 8, strlit3 + 14); in test01() 70 i2 = coll_de.compare(strlit4, strlit4 + size4, strlit4, strlit4 + 13); in test01() 72 i2 = coll_de.compare(strlit4, strlit4 + 13, strlit4, strlit4 + size4); in test01() 74 i2 = coll_de.compare(strlit4, strlit4 + size4, strlit4, strlit4 + size4); in test01() 86 i1 = str3.compare(str4); in test01() 87 i2 = coll_de.compare(strlit3, strlit3 + size3, strlit4, strlit4 + size4); in test01() 98 i3 = coll_de.compare(strlit3, strlit3 + size4, strlit3, strlit3 + 7); in test01() [all …]
|
| H A D | collate_members_char.cc | 62 i1 = coll_c.compare(strlit1, strlit1 + size1, strlit1, strlit1 + 7); in test01() 64 i1 = coll_c.compare(strlit1, strlit1 + 7, strlit1, strlit1 + size1); in test01() 66 i1 = coll_c.compare(strlit1, strlit1 + 7, strlit1, strlit1 + 7); in test01() 71 i2 = coll_c.compare(strlit2, strlit2 + size2, strlit2, strlit2 + 13); in test01() 73 i2 = coll_c.compare(strlit2, strlit2 + 13, strlit2, strlit2 + size2); in test01() 75 i2 = coll_c.compare(strlit2, strlit2 + size2, strlit2, strlit2 + size2); in test01() 89 i1 = str1.compare(str2); in test01() 90 i2 = coll_c.compare(strlit1, strlit1 + size1, strlit2, strlit2 + size2); in test01() 99 i1 = coll_de.compare(strlit3, strlit3 + size3, strlit3, strlit3 + 7); in test01() 101 i1 = coll_de.compare(strlit3, strlit3 + 7, strlit3, strlit3 + size1); in test01() [all …]
|
| H A D | collate_members_wchar_t.cc | 62 i1 = coll_c.compare(strlit1, strlit1 + size1, strlit1, strlit1 + 7); in test01() 64 i1 = coll_c.compare(strlit1, strlit1 + 7, strlit1, strlit1 + size1); in test01() 66 i1 = coll_c.compare(strlit1, strlit1 + 7, strlit1, strlit1 + 7); in test01() 71 i2 = coll_c.compare(strlit2, strlit2 + size2, strlit2, strlit2 + 13); in test01() 73 i2 = coll_c.compare(strlit2, strlit2 + 13, strlit2, strlit2 + size2); in test01() 75 i2 = coll_c.compare(strlit2, strlit2 + size2, strlit2, strlit2 + size2); in test01() 89 i1 = str1.compare(str2); in test01() 90 i2 = coll_c.compare(strlit1, strlit1 + size1, strlit2, strlit2 + size2); in test01() 99 i1 = coll_de.compare(strlit3, strlit3 + size3, strlit3, strlit3 + 7); in test01() 101 i1 = coll_de.compare(strlit3, strlit3 + 7, strlit3, strlit3 + size1); in test01() [all …]
|
| /openbsd-src/regress/usr.sbin/pkg_add/ |
| H A D | check-sig | 26 ok($sig[0]->compare($sig[0], $s) == 0, "self compare"); 27 ok($sig[3]->compare($sig[3], $s) == 0, "self compare"); 28 ok($sig[5]->compare($sig[5], $s) == 0, "self compare"); 29 ok(!defined($sig[0]->compare($sig[3], $s)), "non comparable"); 30 ok($sig[0]->compare($sig[1], $s) < 0, "depend"); 31 ok($sig[0]->compare($sig[2], $s) < 0, "pkgname"); 32 ok($sig[1]->compare($sig[0], $s) > 0, "other way"); 33 ok($sig[3]->compare($sig[4], $s) < 0, "lib"); 34 ok($sig[3]->compare($sig[5], $s) < 0, "depend"); 35 ok(!defined($sig[0]->compare($sig[6], $s)), "non comparable"); [all …]
|
| /openbsd-src/gnu/usr.bin/perl/lib/File/ |
| H A D | Compare.t | 21 use File::Compare qw(compare compare_text); 26 is(compare($README,$README), 0, "compare file to itself"); 27 is(compare($TEST,$README), 1, "compare file to different file"); 28 is(compare($README,"HLAGHLAG"), -1, 45 is(compare($fh,$README), 0, 54 is(compare($fh,$TEST), 1, 85 $donetests[0] = compare($tfh, $README); 90 $donetests[1] = compare($filename, $README); 92 $donetests[2] = compare($README, "$filename$whsp"); 116 eval { compare(); 1 }; [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Pod-Usage/t/pod/ |
| H A D | pod2usage2.t | 52 sub compare 69 ok (compare ($text, <<'EOT'), "Output test pod2usage ()"); 79 ok (compare ($text, <<'EOT'), "Output test pod2usage (-message => '...', -verbose => 1)") or diag("… 99 ok (compare ($text, <<'EOT'), "Output test pod2usage (-verbose => 2, -exit => 42)"); 123 ok (compare ($text, <<'EOT'), "Output test pod2usage (0)"); 141 ok (compare ($text, <<'EOT'), "Output test pod2usage (42)"); 149 ok (compare ($text, <<'EOT'), "Output test pod2usage (-verbose => 0, -exit => 'NOEXIT')"); 158 ok (compare ($text, <<'EOT'), "Output test pod2usage (-verbose => 99, -sections => 'DESCRIPTION')"); 177 ok (compare ($text, <<'EOT'), "Output test pod2usage (-verbose => 2, -input => \*DATA)") or diag "G… 194 ok (compare ($text, <<'EOT'), "Output test pod2usage with USAGE") or diag "Got:\n$text\n"; [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.robertl/ |
| H A D | eb43.C | 20 inline bool compare(const Expr<T> a, const Expr<T> b){ return true; }; in compare() function 26 static_cast<bool (*)(const Expr<int>,const Expr<int>)>(compare) ); in main() 27 sort( a.begin(), a.end(), compare<int> ); in main() 30 ( a.begin(), a.end(), compare ); // ERROR - constructor is explicit in main() 32 ptr_fun<const Expr<int>, const Expr<int>, bool> (compare) ); in main() 34 ptr_fun(compare<int>) ); in main() 36 pointer_to_binary_function<const Expr<int>, const Expr<int>, bool>(compare) ); in main() 38 pointer_to_binary_function<const Expr<int>, const Expr<int>, bool>(compare<int>) ); in main() 40 pointer_to_binary_function<const Expr<int>, const Expr<int>, bool>(compare<>) ); in main()
|
| /openbsd-src/usr.sbin/pkg_add/OpenBSD/ |
| H A D | Signature.pm | 59 sub compare($a, $b) subroutine 61 return $a->sigspec->compare($b->sigspec); 80 sub compare($a, $b) subroutine 82 return $a->spec->compare($b->spec); 106 sub compare($a, $b) subroutine 140 sub compare($a, $b, $state) subroutine 150 my $d = $b->{extra}{VERSION}->compare($a->{extra}{VERSION}); 171 my $r = $v->compare($b->{extra}{$k}); 197 …return OpenBSD::PackageName->from_string($a->{name})->compare(OpenBSD::PackageName->from_string($b… 240 sub compare($a, $b, $state) subroutine [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/ |
| H A D | dump.exp | 193 if { ![string compare $array_val \ 200 if { ![string compare $struct_val \ 211 if { ![string compare $oldval \ 225 if { ![string compare $oldval \ 234 if ![string compare $is64bitonly "no"] then { 246 if ![string compare $is64bitonly "no"] then { 259 if ![string compare $is64bitonly "no"] then { 282 if { ![string compare $array_val \ 289 if { ![string compare $struct_val \ 296 if ![string compare $is64bitonly "no"] then { [all …]
|
| H A D | gcore.exp | 175 if ![string compare $pre_corefile_regs $post_corefile_regs] then { 182 if ![string compare $pre_corefile_allregs $post_corefile_allregs] then { 190 if ![string compare $pre_corefile_extern_array $post_corefile_extern_array] { 198 if ![string compare $pre_corefile_static_array $post_corefile_static_array] { 206 if ![string compare $pre_corefile_uninit_array $post_corefile_uninit_array] { 214 if ![string compare $pre_corefile_heap_string $post_corefile_heap_string] { 222 if ![string compare $pre_corefile_local_array $post_corefile_local_array] { 229 if ![string compare $pre_corefile_backtrace $post_corefile_backtrace] {
|
| H A D | macscp.exp | 110 if {[string compare $definition undefined] == 0 \ 121 if {[string compare $definition ""] == 0} { 163 if {[string compare $func_def $expected] == 0} { 324 if {[string compare $result $expected] == 0} { 326 } elseif {[string compare $result $kfail_expected] == 0} { 329 } elseif {[string compare $result timeout] == 0} { 355 [string compare [lindex $result end] {}] == 0} { 357 } elseif {[string compare $result timeout] == 0} { 393 [string compare [lindex $result end] {}] == 0} { 395 } elseif {[string compare $result timeout] == 0} {
|
| /openbsd-src/sys/dev/pci/drm/ |
| H A D | linux_list_sort.c | 51 int (*compare)(void *, const struct list_head *, const struct list_head *)) in list_sort() 84 sorted = list_sort_merge(accum[logn], sorted, compare, arg); in list_sort() 105 sorted = list_sort_merge(accum[logn], sorted, compare, arg); in list_sort() 111 list_sort_merge_into(list, accum[max_logn], sorted, compare, arg); in list_sort() 121 int (*compare)(void *, const struct list_head *, in list_sort_merge() 130 struct list_head **const first = ((*compare)(arg, a, b) <= 0? in list_sort_merge() 152 int (*compare)(void *, const struct list_head *, in list_sort_merge_into() 162 (*compare)(arg, a, b) <= 0 ? &a : &b); in list_sort_merge_into()
|
| /openbsd-src/gnu/usr.bin/perl/t/op/ |
| H A D | tiehandle.t | 15 sub compare { 33 ::compare(TIEHANDLE => @_); 39 ::compare(PRINT => @_); 44 ::compare(PRINTF => @_); 49 ::compare(READLINE => @_); 54 ::compare(GETC => @_); 59 ::compare(READ => @_); 65 ::compare(EOF => @_); 70 ::compare(WRITE => @_); 76 ::compare(CLOSE => @_); [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/config/rs6000/ |
| H A D | rs6000.md | 42 …e,fpload,fpstore,vecload,vecstore,imul,imul2,imul3,lmul,idiv,ldiv,branch,compare,cr_logical,delaye… 490 ; compare is done on integer unit, but feeds insns which 493 (and (eq_attr "type" "compare") 503 (and (eq_attr "type" "compare,delayed_compare") 507 ; some extra cycles added by TARGET_SCHED_ADJUST_COST between compare 510 (and (eq_attr "type" "compare,delayed_compare") 515 (and (eq_attr "type" "compare,delayed_compare") 520 (and (eq_attr "type" "compare,delayed_compare") 524 ; fp compare uses fp unit 545 ; fp compare uses fp unit [all …]
|
| /openbsd-src/gnu/usr.bin/perl/t/porting/ |
| H A D | FindExt.t | 31 sub compare { 51 compare('known_extensions', $Config{known_extensions}, 58 compare('known_extensions', $Config{known_extensions}, 69 compare("${type}_ext", $Config{"${type}_ext"}, @this_found); 72 compare('"config" dynamic + static + nonxs', $Config{extensions}, 74 compare('"found" dynamic + static + nonxs', [FindExt::extensions()],
|
| /openbsd-src/usr.bin/dig/lib/isc/ |
| H A D | heap.c | 53 ! heap->compare(heap->array[(i)], \ 62 isc_heapcompare_t compare; member 67 isc_heap_create(isc_heapcompare_t compare, in isc_heap_create() argument 74 REQUIRE(compare != NULL); in isc_heap_create() 86 heap->compare = compare; in isc_heap_create() 131 i > 1 && heap->compare(elt, heap->array[p]) ; in float_up() 152 if (j < size && heap->compare(heap->array[j+1], in sink_down() 155 if (heap->compare(elt, heap->array[j])) in sink_down() 201 less = heap->compare(elt, heap->array[idx]); in isc_heap_delete()
|
| /openbsd-src/gnu/gcc/gcc/config/rs6000/ |
| H A D | rs6000.md | 90 …tore,imul,imul2,imul3,lmul,idiv,ldiv,insert_word,branch,cmp,fast_compare,compare,delayed_compare,i… 153 ; (one with a '.') will compare. 190 (compare:CC (zero_extend:DI (match_operand:QHSI 1 "gpc_reg_operand" "r,r")) 197 [(set_attr "type" "compare") 202 (compare:CC (zero_extend:DI (match_operand:QHSI 1 "gpc_reg_operand" "")) 209 (compare:CC (match_dup 2) 215 (compare:CC (zero_extend:DI (match_operand:QHSI 1 "gpc_reg_operand" "r,r")) 223 [(set_attr "type" "compare") 228 (compare:CC (zero_extend:DI (match_operand:QHSI 1 "gpc_reg_operand" "")) 236 (compare:CC (match_dup 0) [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyTIL.h | 412 typename C::CType compare(const Variable* E, C& Cmp) const { in compare() function 472 typename C::CType compare(const Future* E, C& Cmp) const { in compare() function 475 return Cmp.compare(Result, E->Result); in compare() 499 typename C::CType compare(const Undefined* E, C& Cmp) const { in compare() function 520 typename C::CType compare(const Wildcard* E, C& Cmp) const { in compare() function 552 typename C::CType compare(const Literal* E, C& Cmp) const { in compare() function 651 typename C::CType compare(const LiteralPtr* E, C& Cmp) const { in compare() function 696 typename C::CType compare(const Function* E, C& Cmp) const { in compare() function 698 Cmp.compare(VarDecl->definition(), E->VarDecl->definition()); in compare() 702 Ct = Cmp.compare(body(), E->body()); in compare() [all …]
|
| /openbsd-src/gnu/gcc/gcc/config/m32c/ |
| H A D | cond.md | 26 ; compare right before the insn, which is good, because m32c's mov 28 ; insn that may require reloading must be kept with its compare until 36 ; * other insns must expand to include the compare operands within, 37 ; then split after reload to a separate compare and conditional. 60 (compare (match_dup 1) 111 (compare (match_operand:QHPSI 0 "mra_operand" "RraSd") 119 (compare (match_operand:QHPSI 0 "mra_operand" "RraSd") 148 ;; We need to keep the compare and conditional sets together through 151 ;; reloads get put before the compare, thus preserving the flags. 180 (compare (match_dup 1) [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/ |
| H A D | template44.C | 33 void AlgoSort(int (*compare)(const T *, const T *), in AlgoSort() 40 (int (*)(const void *, const void *))compare); in AlgoSort() 47 int (*compare)(const T*, const T*) = AlgoStdCompare; variable 50 AlgoSort(compare, fixup, theList, first, last);
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | PriorityQueue.h | 30 explicit PriorityQueue(const Compare &compare = Compare(), 32 : std::priority_queue<T, Sequence, Compare>(compare, sequence) 37 const Compare &compare = Compare(), 39 : std::priority_queue<T, Sequence, Compare>(begin, end, compare, sequence)
|
| /openbsd-src/gnu/llvm/libcxx/include/ |
| H A D | string_view | 17 #include <compare> 131 constexpr int compare(basic_string_view s) const noexcept; 132 constexpr int compare(size_type pos1, size_type n1, basic_string_view s) const; 133 constexpr int compare(size_type pos1, size_type n1, 135 constexpr int compare(const charT* s) const; 136 constexpr int compare(size_type pos1, size_type n1, const charT* s) const; 137 constexpr int compare(size_type pos1, size_type n1, 237 #include <compare> 451 _LIBCPP_CONSTEXPR_SINCE_CXX14 int compare(basic_string_view __sv) const _NOEXCEPT 454 int __retval = _Traits::compare(data(), __sv.data(), __rlen); [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
| H A D | 980526-3.c | 1 int compare(x, y) in compare() function 15 if (compare(5%(~(unsigned) 2), i%~j) in main() 16 || compare(0, k%~l)) in main()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Math-BigInt/t/ |
| H A D | nan_cmp.t | 3 # test that overloaded compare works when NaN are involved 13 compare('Math::BigInt'); 14 compare('Math::BigFloat'); 16 sub compare {
|