/openbsd/gnu/lib/libstdc++/libstdc++/testsuite/21_strings/ |
H A D | compare.cc | 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() 114 test_value(str_0.compare("costa marbella"), gt); in test01() 115 test_value(str_1.compare("costa rica"), lt); in test01() 117 test_value(str_2.compare("costa rica"), z); in test01() [all …]
|
/openbsd/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() 86 i1 = str3.compare(str4); in test01() 98 i3 = coll_de.compare(strlit3, strlit3 + size4, strlit3, strlit3 + 7); in test01() 100 i3 = coll_de.compare(strlit3, strlit3 + 7, strlit3, strlit3 + size4); in test01() 102 i3 = coll_de.compare(strlit3, strlit3 + 7, 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() 89 i1 = str1.compare(str2); 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() 103 i1 = coll_de.compare(strlit3, strlit3 + 7, strlit3, strlit3 + 7); in test01() 106 i1 = coll_de.compare(strlit3, strlit3 + 6, strlit3 + 8, strlit3 + 14); 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() 89 i1 = str1.compare(str2); 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() 103 i1 = coll_de.compare(strlit3, strlit3 + 7, strlit3, strlit3 + 7); in test01() 106 i1 = coll_de.compare(strlit3, strlit3 + 6, strlit3 + 8, strlit3 + 14); in test01() [all …]
|
/openbsd/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/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"); 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); 116 eval { compare(); 1 }; 117 like($@, qr/Usage:\s+compare/, 123 eval { compare(undef, $README); 1 }; [all …]
|
/openbsd/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 ()"); 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')"); 194 ok (compare ($text, <<'EOT'), "Output test pod2usage with USAGE") or diag "Got:\n$text\n"; 238 ok (compare ($text, <<'EOT'), "Output test pod2usage with self") or diag "Got:\n$text\n"; 277 ok (compare ($text, <<'EOT'), "Output test pod2usage with nested headings") or diag "Got:\n$text\n"; [all …]
|
/openbsd/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/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/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/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/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/gnu/usr.bin/gcc/gcc/config/rs6000/ |
H A D | rs6000.md | 2160 (compare:CC 2176 (compare:CC 2195 (compare:CC 2214 (compare:CC 2961 [(set_attr "type" "compare,compare,compare,delayed_compare,compare,compare,compare,compare") 2981 [(set_attr "type" "compare,compare,compare,delayed_compare,compare,compare,compare,compare") 3040 [(set_attr "type" "compare,compare,compare,delayed_compare,compare,compare,compare,compare") 3062 [(set_attr "type" "compare,compare,compare,delayed_compare,compare,compare,compare,compare") 3434 (compare:CC 7649 …[(set_attr "type" "compare,delayed_compare,compare,compare,delayed_compare,compare,compare,compare… [all …]
|
/openbsd/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/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/gnu/gcc/gcc/config/rs6000/ |
H A D | rs6000.md | 1500 [(set_attr "type" "fast_compare,compare,compare,compare") 1532 [(set_attr "type" "fast_compare,compare,compare,compare") 1886 (compare:CC 2734 [(set_attr "type" "*,*,compare,compare")]) 2757 [(set_attr "type" "compare,compare,compare,delayed_compare,compare,compare,compare,compare") 2777 [(set_attr "type" "compare,compare,compare,delayed_compare,compare,compare,compare,compare") 2836 [(set_attr "type" "compare,compare,compare,delayed_compare,compare,compare,compare,compare") 2858 [(set_attr "type" "compare,compare,compare,delayed_compare,compare,compare,compare,compare") 7295 [(set_attr "type" "*,*,*,compare,compare,*") 7340 …[(set_attr "type" "compare,compare,compare,compare,compare,compare,compare,compare,compare,compare… [all …]
|
/openbsd/gnu/llvm/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafetyTIL.h | 475 return Cmp.compare(Result, E->Result); in compare() 702 Ct = Cmp.compare(body(), E->body()); in compare() 791 return Cmp.compare(body(), E->body()); in compare() 826 return Cmp.compare(body(), E->body()); in compare() 865 return Cmp.compare(arg(), E->arg()); in compare() 903 return Cmp.compare(arg(), E->arg()); in compare() 1195 return Cmp.compare(expr(), E->expr()); in compare() 1241 Ct = Cmp.compare(expr0(), E->expr0()); in compare() 1281 return Cmp.compare(expr(), E->expr()); in compare() 1477 return Cmp.compare(Retval, E->Retval); in compare() [all …]
|
/openbsd/gnu/gcc/gcc/config/m32c/ |
H A D | cond.md | 26 ; compare right before the insn, which is good, because m32c's mov 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") 180 (compare (match_dup 1) 196 (compare (match_dup 1) 214 (compare (match_dup 1) 234 (compare (match_dup 1) 244 ;; And these are the expanders, which read the pending compare [all …]
|
/openbsd/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/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/gnu/llvm/libcxx/include/ |
H A D | string_view | 17 #include <compare> 237 #include <compare> 752 return __lhs.compare(__rhs) == 0; 763 return __lhs.compare(__rhs) == 0; 774 return __lhs.compare(__rhs) == 0; 848 return __lhs.compare(__rhs) < 0; 856 return __lhs.compare(__rhs) < 0; 864 return __lhs.compare(__rhs) < 0; 873 return __lhs.compare(__rhs) > 0; 881 return __lhs.compare(__rhs) > 0; [all …]
|
/openbsd/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/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 {
|