/openbsd-src/gnu/lib/libstdc++/libstdc++/testsuite/21_strings/ |
H A D | compare.cc | 21 // 21.3.6.8 basic_string::compare 22 // int compare(const basic_string& str) const; 23 // int compare(size_type pos1, size_type n1, const basic_string& str) const; 24 // int compare(size_type pos1, size_type n1, const basic_string& str, 26 // int compare(const charT* s) const; 27 // int compare(size_type pos1, size_type n1, 30 // NB compare should be thought of as a lexographical compare, ie how 91 // int compare(const basic_string& str) const; in test01() 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() [all …]
|
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
H A D | SystemZElimCompare.cpp | 11 // (2) fuses compares and branches into COMPARE AND BRANCH instructions 36 #define DEBUG_TYPE "systemz-elim-compare" 41 STATISTIC(FusedComparisons, "Number of fused compare-and-branch instructions"); 82 bool convertToBRCT(MachineInstr &MI, MachineInstr &Compare, 84 bool convertToLoadAndTrap(MachineInstr &MI, MachineInstr &Compare, 86 bool convertToLoadAndTest(MachineInstr &MI, MachineInstr &Compare, 88 bool convertToLogical(MachineInstr &MI, MachineInstr &Compare, 90 bool adjustCCMasksForInstr(MachineInstr &MI, MachineInstr &Compare, 93 bool optimizeCompareZero(MachineInstr &Compare, 95 bool fuseCompareOperations(MachineInstr &Compare, [all …]
|
/openbsd-src/gnu/usr.bin/perl/lib/File/ |
H A D | Compare.t | 21 use File::Compare qw(compare compare_text); 23 # Upon success, compare() and compare_text() return a Unix-ish 0 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, 29 "compare file to nonexistent file returns error value"); 45 is(compare($fh,$README), 0, 46 "compare file with filehandle open to same file"); 54 is(compare($fh,$TEST), 1, 55 "compare file with filehandle open to different file"); [all …]
|
H A D | Compare.pm | 1 package File::Compare 1.1008; 8 our @EXPORT = qw(compare); 18 sub compare { subroutine 19 croak("Usage: compare( file1, file2 [, buffersize]) ") 116 *cmp = \&compare; 125 # Using a negative buffer size puts compare into text_mode too 126 compare($from, $to, $cmp // -1); 135 File::Compare - Compare files or filehandles 139 use File::Compare; [all...] |
/openbsd-src/gnu/llvm/libcxx/utils/ |
H A D | generate_header_inclusion_tests.py | 27 "array": ["compare", "initializer_list"], 29 "chrono": ["compare"], 32 "coroutine": ["compare"], 33 "deque": ["compare", "initializer_list"], 34 "filesystem": ["compare"], 35 "forward_list": ["compare", "initializer_list"], 38 "iterator": ["compare", "concepts"], 39 "list": ["compare", "initializer_list"], 40 "map": ["compare", "initializer_list"], 41 "memory": ["compare"], [all …]
|
/openbsd-src/gnu/usr.bin/perl/cpan/File-Temp/t/ |
H A D | cmp.t | 13 ok( "$fh" ne "foo", "compare stringified object with string"); 14 ok( $fh ne "foo", "compare object with string"); 15 ok( $fh eq $fh, "compare eq with self"); 17 ok( $fh != 0, "compare != 0"); 18 ok( $fh == $fh, "compare == with self"); 19 ok( $fh != \*STDOUT, "compare != \*STDOUT"); 35 ok( "$fh" ne "foo", "compare stringified object with string"); 36 ok( $fh ne "foo", "compare object with string"); 37 ok( $fh eq $fh, "compare eq with self"); 39 ok( $fh != 0, "compare != 0"); [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/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 | 52 // int compare(const charT*, const charT*, const charT*, const charT*) const in test01() 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() [all …]
|
H A D | collate_members_wchar_t.cc | 52 // int compare(const charT*, const charT*, const charT*, const charT*) const in test01() 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() [all …]
|
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
H A D | PriorityQueue.h | 27 class Compare = std::less<typename Sequence::value_type> > 28 class PriorityQueue : public std::priority_queue<T, Sequence, Compare> { 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/usr.bin/binutils-2.17/opcodes/ |
H A D | s390-opc.txt | 33 59 c RX_RRRD "compare" g5 esa,zarch 34 69 cd RX_FRRD "compare (long)" g5 esa,zarch 35 29 cdr RR_FF "compare (long)" g5 esa,zarch 36 bb cds RS_RRRD "compare double and swap" g5 esa,zarch 37 79 ce RX_FRRD "compare (short)" g5 esa,zarch 38 39 cer RR_FF "compare (short)" g5 esa,zarch 39 b21a cfc S_RD "compare and form codeword" g5 esa,zarch 40 49 ch RX_RRRD "compare halfword" g5 esa,zarch 41 55 cl RX_RRRD "compare logical" g5 esa,zarch 42 d5 clc SS_L0RDRD "compare logical" g5 esa,zarch [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/gnu/usr.bin/binutils/opcodes/ |
H A D | s390-opc.txt | 33 59 c RX_RRRD "compare" g5 esa,zarch 34 69 cd RX_FRRD "compare (long)" g5 esa,zarch 35 29 cdr RR_FF "compare (long)" g5 esa,zarch 36 bb cds RS_RRRD "compare double and swap" g5 esa,zarch 37 79 ce RX_FRRD "compare (short)" g5 esa,zarch 38 39 cer RR_FF "compare (short)" g5 esa,zarch 39 b21a cfc S_RD "compare and form codeword" g5 esa,zarch 40 49 ch RX_RRRD "compare halfword" g5 esa,zarch 41 55 cl RX_RRRD "compare logical" g5 esa,zarch 42 d5 clc SS_L0RDRD "compare logical" g5 esa,zarch [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/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_win_defs.h | 95 // WIN_WEAK_EXPORT_DEF(bool, compare, int a, int b) { return a > b; } 104 // WIN_WEAK_IMPORT_DEF(compare) 115 // WIN_WEAK_EXPORT_DEF(bool, compare, int a, int b) { return a > b; } 119 // compare(1, 2); 121 // extern "C" bool compare (int a, int b) { return a >= b; } 132 // WIN_WEAK_EXPORT_DEF(bool, compare, int a, int b) { return a > b; } 135 // WIN_WEAK_IMPORT_DEF(compare) 137 // compare(1, 2); 139 // extern "C" bool compare (int a, int b) { return a >= b; } 146 // WIN_WEAK_EXPORT_DEF(bool, compare, int a, int b) { return a > b; } [all …]
|
/openbsd-src/gnu/usr.bin/binutils-2.17/gas/doc/ |
H A D | c-i960.texi | 120 Normally, Compare-and-Branch instructions with targets that require 122 replaced with the corresponding compare (or @samp{chkbit}) and branch 127 This option does not affect the Compare-and-Jump instructions; the code 205 instruction: @samp{callj}, and Compare-and-Branch or Compare-and-Jump 210 * Compare-and-branch-i960:: Compare-and-Branch 226 @node Compare-and-branch-i960 227 @subsection Compare-and-Branch 229 @cindex i960 compare/branch instructions 230 @cindex compare/branch instructions, i960 231 The 960 architectures provide combined Compare-and-Branch instructions [all …]
|
/openbsd-src/gnu/usr.bin/binutils/gas/doc/ |
H A D | c-i960.texi | 120 Normally, Compare-and-Branch instructions with targets that require 122 replaced with the corresponding compare (or @samp{chkbit}) and branch 127 This option does not affect the Compare-and-Jump instructions; the code 205 instruction: @samp{callj}, and Compare-and-Branch or Compare-and-Jump 210 * Compare-and-branch-i960:: Compare-and-Branch 226 @node Compare-and-branch-i960 227 @subsection Compare-and-Branch 229 @cindex i960 compare/branch instructions 230 @cindex compare/branch instructions, i960 231 The 960 architectures provide combined Compare-and-Branch instructions [all …]
|
/openbsd-src/gnu/llvm/libcxx/include/ |
H A D | set | 20 template <class Key, class Compare = less<Key>, 28 typedef Compare key_compare; 72 : set(first, last, Compare(), a) {} // C++14 74 : set(il, Compare(), a) {} // C++14 187 class Compare = less<typename iterator_traits<InputIterator>::value_type>, 190 Compare = Compare(), Allocator = Allocator()) 191 -> set<typename iterator_traits<InputIterator>::value_type, Compare, Allocator>; // C++17 193 template<class Key, class Compare = less<Key>, class Allocator = allocator<Key>> 194 set(initializer_list<Key>, Compare = Compare(), Allocator = Allocator()) 195 -> set<Key, Compare, Allocator>; // C++17 [all …]
|
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 …]
|
H A D | queue | 112 class Compare = less<typename Container::value_type>> 124 Compare comp; 127 priority_queue() : priority_queue(Compare()) {} // C++20 128 explicit priority_queue(const Compare& x) : priority_queue(x, Container()) {} 129 priority_queue(const Compare& x, const Container&); 130 … explicit priority_queue(const Compare& x = Compare(), Container&& = Container()); // before C++20 131 priority_queue(const Compare& x, Container&&); // C++20 134 const Compare& comp = Compare()); 137 const Compare& comp, const Container& c); 140 const Compare& comp, Container&& c); [all …]
|
/openbsd-src/gnu/gcc/libstdc++-v3/docs/html/17_intro/ |
H A D | CHECKLIST | 1009 T static int compare(const char_type* s1, const char_type* s2, size_t n); 1039 V static int compare(const char_type* s1, const char_type* s2, size_t n); 1323 V int compare(const basic_string& str) const; 1324 V int compare(size_type pos1, size_type n1, 1326 V int compare(size_type pos1, size_type n1, 1329 V int compare(const charT* s) const; 1330 V int compare(size_type pos1, size_type n1, 1955 T int compare(const charT* low1, const charT* high1, 2337 class Compare = less<typename Container::value_type> > 2585 T template <class Compare> void merge(list<T,Allocator>& x, Compare comp); [all …]
|
/openbsd-src/gnu/lib/libstdc++/libstdc++/docs/html/17_intro/ |
H A D | CHECKLIST | 1009 T static int compare(const char_type* s1, const char_type* s2, size_t n); 1039 V static int compare(const char_type* s1, const char_type* s2, size_t n); 1323 V int compare(const basic_string& str) const; 1324 V int compare(size_type pos1, size_type n1, 1326 V int compare(size_type pos1, size_type n1, 1329 V int compare(const charT* s) const; 1330 V int compare(size_type pos1, size_type n1, 1955 T int compare(const charT* low1, const charT* high1, 2337 class Compare = less<typename Container::value_type> > 2585 T template <class Compare> void merge(list<T,Allocator>& x, Compare comp); [all …]
|
/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/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 …]
|