Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 1912) sorted by relevance

12345678910>>...77

/freebsd/contrib/ncurses/ncurses/base/
H A Dnew_pair.c71 prev_len(SCREEN *sp, int pair) in prev_len() argument
74 int base = pair; in prev_len()
76 while (list[pair].prev != base) { in prev_len()
78 pair = list[pair].prev; in prev_len()
84 next_len(SCREEN *sp, int pair) in next_len() argument
87 int base = pair; in next_len()
89 while (list[pair].next != base) { in next_len()
91 pair = list[pair].next; in next_len()
100 dumpit(SCREEN *sp, int pair, const char *tag) in dumpit() argument
116 n, n == pair ? '@' : ':', list[n].next, list[n].prev); in dumpit()
[all …]
H A Dlib_color.c489 _nc_change_pair(SCREEN *sp, int pair) in _nc_change_pair() argument
504 if (GetPair(ptr->text[x]) == pair) { in _nc_change_pair()
559 _nc_init_pair(SCREEN *sp, int pair, int f, int b) in _nc_init_pair() argument
566 T((T_CALLED("init_pair(%p,%d,%d,%d)"), (void *) sp, pair, f, b)); in _nc_init_pair()
568 if (!ValidPair(sp, pair)) in _nc_init_pair()
573 ReservePairs(sp, pair); in _nc_init_pair()
574 previous = sp->_color_pairs[pair]; in _nc_init_pair()
626 if (pair > (sp->_pair_count + default_pairs)) { in _nc_init_pair()
635 || (pair < 1)) { in _nc_init_pair()
649 _nc_change_pair(sp, pair); in _nc_init_pair()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dpair.h65 struct _LIBCPP_TEMPLATE_VIS pair struct
78 pair, argument
81 _LIBCPP_HIDE_FROM_ABI pair(pair const&) = default;
82 _LIBCPP_HIDE_FROM_ABI pair(pair&&) = default;
94 _LIBCPP_HIDE_FROM_ABI constexpr pair& operator=(const pair&) argument
98 _LIBCPP_HIDE_FROM_ABI constexpr pair& operator=(pair&&) argument
102 _LIBCPP_HIDE_FROM_ABI pair& operator=(const pair&) argument
105 _LIBCPP_HIDE_FROM_ABI pair& operator=(pair&&) argument
117 _LIBCPP_HIDE_FROM_ABI pair() : first(), second() {} in pair() argument
119 _LIBCPP_HIDE_FROM_ABI pair(_T1 const& __t1, _T2 const& __t2) : first(__t1), second(__t2) {} in pair() argument
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dutility74 struct pair
82 pair(const pair&) = default;
83 pair(pair&&) = default;
84 explicit(see-below) constexpr pair();
85 … explicit(see-below) pair(const T1& x, const T2& y); // constexpr in C++14
86 … template <class U = T1, class V = T2> explicit(see-below) pair(U&&, V&&); // constexpr in C++14
87 template <class U, class V> constexpr explicit(see-below) pair(pair<U, V>&); // since C++23
88 … template <class U, class V> explicit(see-below) pair(const pair<U, V>& p); // constexpr in C++14
89 … template <class U, class V> explicit(see-below) pair(pair<U, V>&& p); // constexpr in C++14
91 constexpr explicit(see-below) pair(const pair<U, V>&&); // since C++23
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_userhold.c99 for (nvpair_t *pair = nvlist_next_nvpair(dduha->dduha_holds, NULL); in dsl_dataset_user_hold_check() local
100 pair != NULL; pair = nvlist_next_nvpair(dduha->dduha_holds, pair)) { in dsl_dataset_user_hold_check()
101 size_t len = strlen(nvpair_name(pair)) + in dsl_dataset_user_hold_check()
102 strlen(fnvpair_value_string(pair)); in dsl_dataset_user_hold_check()
104 (void) strlcpy(nameval, nvpair_name(pair), len + 2); in dsl_dataset_user_hold_check()
106 (void) strlcat(nameval, fnvpair_value_string(pair), len + 2); in dsl_dataset_user_hold_check()
114 for (nvpair_t *pair = nvlist_next_nvpair(dduha->dduha_holds, NULL); in dsl_dataset_user_hold_check() local
115 pair != NULL; pair = nvlist_next_nvpair(dduha->dduha_holds, pair)) { in dsl_dataset_user_hold_check()
121 name = nvpair_name(pair); in dsl_dataset_user_hold_check()
126 error = nvpair_value_string(pair, &htag); in dsl_dataset_user_hold_check()
[all …]
H A Dzcp.c475 nvpair_t *pair; in zcp_nvlist_to_lua() local
482 for (pair = nvlist_next_nvpair(nvl, NULL); in zcp_nvlist_to_lua()
483 pair != NULL; pair = nvlist_next_nvpair(nvl, pair)) { in zcp_nvlist_to_lua()
484 if (nvpair_type(pair) != DATA_TYPE_BOOLEAN) { in zcp_nvlist_to_lua()
491 for (pair = nvlist_next_nvpair(nvl, NULL); in zcp_nvlist_to_lua()
492 pair != NULL; pair = nvlist_next_nvpair(nvl, pair)) { in zcp_nvlist_to_lua()
494 (void) lua_pushstring(state, nvpair_name(pair)); in zcp_nvlist_to_lua()
499 for (pair = nvlist_next_nvpair(nvl, NULL); in zcp_nvlist_to_lua()
500 pair != NULL; pair = nvlist_next_nvpair(nvl, pair)) { in zcp_nvlist_to_lua()
501 int err = zcp_nvpair_value_to_lua(state, pair, in zcp_nvlist_to_lua()
[all …]
/freebsd/contrib/lib9p/pytest/
H A Dnumalloc.py176 pair = self.avail[mid]
177 if val < pair[0]:
180 elif val > pair[1]:
185 return mid, pair
209 i, pair = self._find_block(val)
210 if pair is None:
224 pair = self.avail[i]
225 val = pair[0]
234 assert pair[0] <= val <= pair[1]
235 if pair[0] == val:
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DSelectHelper.cpp107 for (auto &pair : m_fd_map) { in Select() local
108 pair.second.PrepareForSelect(); in Select()
109 const lldb::socket_t fd = pair.first; in Select()
117 if (pair.second.read_set) in Select()
119 if (pair.second.write_set) in Select()
121 if (pair.second.error_set) in Select()
178 for (auto &pair : m_fd_map) { in Select() local
179 const lldb::socket_t fd = pair.first; in Select()
181 if (pair.second.read_set) in Select()
184 if (pair.second.write_set) in Select()
[all …]
H A DStructuredData.cpp109 std::pair<llvm::StringRef, llvm::StringRef> match = path.split('.'); in GetObjectForDotSeparatedPath()
124 std::pair<llvm::StringRef, llvm::StringRef> match = path.split('['); in GetObjectForDotSeparatedPath()
168 using Entry = std::pair<llvm::StringRef, ObjectSP>; in Serialize()
170 for (const auto &pair : m_dict) in Serialize()
171 sorted_entries.push_back({pair.first(), pair.second}); in Serialize()
175 for (const auto &pair : sorted_entries) { in Serialize()
176 s.attributeBegin(pair.first);
177 pair.second->Serialize(s); in Serialize()
228 // Print value and new line if now last pair in GetDescription()
165 for (const auto &pair : m_dict) { Serialize() local
231 for (const auto &pair : m_dict) { GetDescription() local
[all...]
/freebsd/contrib/llvm-project/libcxx/include/__fwd/
H A Dpair.h23 struct _LIBCPP_TEMPLATE_VIS pair; variable
26 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename tuple_element<_Ip, pair<_T1, _T2> >::t…
27 get(pair<_T1, _T2>&) _NOEXCEPT;
30 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const typename tuple_element<_Ip, pair<_T1, _T2…
31 get(const pair<_T1, _T2>&) _NOEXCEPT;
35 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 typename tuple_element<_Ip, pair<_T1, _T2> >::t…
36 get(pair<_T1, _T2>&&) _NOEXCEPT;
39 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const typename tuple_element<_Ip, pair<_T1, _T2…
40 get(const pair<_T1, _T2>&&) _NOEXCEPT;
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_et.c83 evutil_socket_t *pair = data->pair; in test_edgetriggered() local
97 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered()
98 tt_int_op(shutdown(pair[0], EVUTIL_SHUT_WR), ==, 0); in test_edgetriggered()
106 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev); in test_edgetriggered()
153 ev_et = event_new(base, data->pair[0], EV_READ|EV_ET, read_cb, ev_et); in test_edgetriggered_mix_error()
155 ev_lt = event_new(base, data->pair[0], EV_READ, read_cb, ev_lt); in test_edgetriggered_mix_error()
212 evutil_socket_t *pair = data->pair; in test_edge_triggered_multiple_events() local
225 tt_int_op(send(pair[0], &c, 1, 0), >, 0); in test_edge_triggered_multiple_events()
227 read_ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events()
229 write_ev = event_new(base, pair[1], EV_WRITE|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events()
[all …]
H A Dregress_main.c316 data->pair[0] = spair[0]; in basic_test_setup()
317 data->pair[1] = spair[1]; in basic_test_setup()
331 if (data->pair[0] != -1) in basic_test_cleanup()
332 evutil_closesocket(data->pair[0]); in basic_test_cleanup()
333 if (data->pair[1] != -1) in basic_test_cleanup()
334 evutil_closesocket(data->pair[1]); in basic_test_cleanup()
372 pair[0] = data->pair[0]; in legacy_test_setup()
373 pair[1] = data->pair[1]; in legacy_test_setup()
407 pair[0] = pair[1] = -1; in legacy_test_cleanup()
/freebsd/contrib/libevent/test/
H A Dregress_et.c83 evutil_socket_t *pair = data->pair; in test_edgetriggered() local
97 tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0); in test_edgetriggered()
98 tt_int_op(shutdown(pair[0], EVUTIL_SHUT_WR), ==, 0); in test_edgetriggered()
106 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev); in test_edgetriggered()
153 ev_et = event_new(base, data->pair[0], EV_READ|EV_ET, read_cb, ev_et); in test_edgetriggered_mix_error()
155 ev_lt = event_new(base, data->pair[0], EV_READ, read_cb, ev_lt); in test_edgetriggered_mix_error()
212 evutil_socket_t *pair = data->pair; in test_edge_triggered_multiple_events() local
225 tt_int_op(send(pair[0], &c, 1, 0), >, 0); in test_edge_triggered_multiple_events()
227 read_ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events()
229 write_ev = event_new(base, pair[1], EV_WRITE|EV_ET|EV_PERSIST, in test_edge_triggered_multiple_events()
[all …]
H A Dregress_main.c316 data->pair[0] = spair[0]; in basic_test_setup()
317 data->pair[1] = spair[1]; in basic_test_setup()
331 if (data->pair[0] != -1) in basic_test_cleanup()
332 evutil_closesocket(data->pair[0]); in basic_test_cleanup()
333 if (data->pair[1] != -1) in basic_test_cleanup()
334 evutil_closesocket(data->pair[1]); in basic_test_cleanup()
372 pair[0] = data->pair[0]; in legacy_test_setup()
373 pair[1] = data->pair[1]; in legacy_test_setup()
407 pair[0] = pair[1] = -1; in legacy_test_cleanup()
/freebsd/tests/sys/cddl/zfs/tests/rsend/
H A Drsend_011_pos.ksh107 set -A pair "$POOL" "$dstds" \
116 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol"
117 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol"
126 log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]}
127 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}
H A Drsend_008_pos.ksh105 set -A pair "$POOL" "$dstds" \
114 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol"
115 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol"
124 log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]}
125 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUGlobalISelUtils.cpp19 std::pair<Register, unsigned>
31 return std::pair(Register(), Offset); in getBaseWithConstantOffset()
40 return std::pair(Reg, 0); in getBaseWithConstantOffset()
44 return std::pair(Def->getOperand(1).getReg(), Offset); in getBaseWithConstantOffset()
48 return std::pair(Def->getOperand(1).getReg(), Offset); in getBaseWithConstantOffset()
54 return std::pair(Base, Offset); in getBaseWithConstantOffset()
63 return std::pair(Base->getOperand(1).getReg(), Offset); in getBaseWithConstantOffset()
66 return std::pair(Base->getOperand(0).getReg(), Offset); in getBaseWithConstantOffset()
70 return std::pair(Reg, 0); in getBaseWithConstantOffset()
H A DAMDGPUSubtarget.h81 std::pair<unsigned, unsigned> getDefaultFlatWorkGroupSize(CallingConv::ID CC) const;
90 std::pair<unsigned, unsigned> getFlatWorkGroupSizes(const Function &F) const;
101 std::pair<unsigned, unsigned> getWavesPerEU(const Function &F) const { in getWavesPerEU()
103 std::pair<unsigned, unsigned> FlatWorkGroupSizes = getFlatWorkGroupSizes(F); in getWavesPerEU()
110 std::pair<unsigned, unsigned>
112 std::pair<unsigned, unsigned> FlatWorkGroupSizes) const;
113 std::pair<unsigned, unsigned> getEffectiveWavesPerEU(
114 std::pair<unsigned, unsigned> WavesPerEU,
115 std::pair<unsigned, unsigned> FlatWorkGroupSizes) const;
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Drsend_008_pos.ksh99 set -A pair "$POOL" "$dstds" \
108 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol"
109 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol"
118 log_must cmp_ds_cont ${pair[$i]} ${pair[((i+1))]}
119 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}
H A Drsend_011_pos.ksh91 set -A pair "$POOL" "$dstds" \
100 pair[((n))]="$POOL/vol"; pair[((n+1))]="$dstds/vol"
101 pair[((n+2))]="$POOL/$FS/vol" pair[((n+3))]="$dstds/$FS/vol"
110 log_must cmp_ds_prop ${pair[$i]} ${pair[((i+1))]}
/freebsd/contrib/libfido2/src/
H A Dcbor.c230 struct cbor_pair pair; in cbor_add_bytestring() local
233 memset(&pair, 0, sizeof(pair)); in cbor_add_bytestring()
235 if ((pair.key = cbor_build_string(key)) == NULL || in cbor_add_bytestring()
236 (pair.value = cbor_build_bytestring(value, value_len)) == NULL) { in cbor_add_bytestring()
241 if (!cbor_map_add(item, pair)) { in cbor_add_bytestring()
248 if (pair.key) in cbor_add_bytestring()
249 cbor_decref(&pair.key); in cbor_add_bytestring()
250 if (pair.value) in cbor_add_bytestring()
251 cbor_decref(&pair.value); in cbor_add_bytestring()
259 struct cbor_pair pair; in cbor_add_string() local
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DMapVector.h35 typename VectorType = SmallVector<std::pair<KeyT, ValueT>, 0>>
83 std::pair<KeyT, ValueT> &front() { return Vector.front(); } in front()
84 const std::pair<KeyT, ValueT> &front() const { return Vector.front(); } in front()
85 std::pair<KeyT, ValueT> &back() { return Vector.back(); } in back()
86 const std::pair<KeyT, ValueT> &back() const { return Vector.back(); } in back()
99 std::pair<KeyT, typename MapType::mapped_type> Pair = std::make_pair(Key, 0);
100 std::pair<typename MapType::iterator, bool> Result = Map.insert(Pair);
118 std::pair<iterator, bool> try_emplace(const KeyT &Key, Ts &&...Args) { in insert()
129 std::pair<iterator, bool> try_emplace(KeyT &&Key, Ts &&...Args) { in insert()
141 std::pair<iterato in insert()
[all...]
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dminmax.h27 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair<const _Tp&, const…
29 …return __comp(__b, __a) ? pair<const _Tp&, const _Tp&>(__b, __a) : pair<const _Tp&, const _Tp&>(__… in minmax()
33 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair<const _Tp&, const…
41 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair<_Tp, _Tp>
46 return pair<_Tp, _Tp>(*__ret.first, *__ret.second); in minmax()
50 _LIBCPP_NODISCARD inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 pair<_Tp, _Tp>
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dnvlist_to_lua.c40 for (nvpair_t *pair = nvlist_next_nvpair(nvla, NULL); in nvlist_equal() local
41 pair != NULL; pair = nvlist_next_nvpair(nvla, pair)) { in nvlist_equal()
42 const char *key = nvpair_name(pair); in nvlist_equal()
47 if (nvpair_type(pair) != in nvlist_equal()
51 switch (nvpair_type(pair)) { in nvlist_equal()
53 if (fnvpair_value_boolean_value(pair) != in nvlist_equal()
59 if (strcmp(fnvpair_value_string(pair), in nvlist_equal()
65 if (fnvpair_value_int64(pair) != in nvlist_equal()
71 if (!nvlist_equal(fnvpair_value_nvlist(pair), in nvlist_equal()
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DTypeSystem.cpp223 for (auto &pair : map) { in Clear() local
224 if (visited.count(pair.second.get())) in Clear()
226 visited.insert(pair.second.get()); in Clear()
227 if (lldb::TypeSystemSP type_system = pair.second) in Clear()
254 for (auto &pair : map_snapshot) { in ForEach() local
255 TypeSystem *type_system = pair.second.get(); in ForEach()
260 if (!callback(pair.second)) in ForEach()
285 for (const auto &pair : m_map) { in GetTypeSystemForLanguage() local
286 if (pair.second && pair.second->SupportsLanguage(language)) { in GetTypeSystemForLanguage()
289 m_map[language] = pair.second; in GetTypeSystemForLanguage()
[all …]

12345678910>>...77