Home
last modified time | relevance | path

Searched refs:__len (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-13.1/tools/coccinelle/
H A Dcopystr9.cocci2 expression __src, __dst, __len;
7 -copystr(__src, __dst, __len, NULL);
8 +strlcpy(__dst, __src, __len);
11 expression __src, __dst, __len;
18 -copystr(__src, __dst, __len, NULL) != 0
20 -copystr(__src, __dst, __len, NULL)
22 +strlcpy(__dst, __src, __len) >= __len
26 expression __src, __dst, __len;
34 +__done = MIN(__done, __len);
36 -copystr(__src, __dst, __len, __done);
[all …]
/freebsd-13.1/contrib/llvm-project/libcxx/include/__functional/
H A Dhash.h64 _Size __h = __len;
66 for (; __len >= 4; __data += 4, __len -= 4)
75 switch (__len)
132 if (__len > 8) {
137 if (__len >= 4) {
142 if (__len > 0) {
199 (__len + __loadword<_Size>(__s + __len - 16)) * __k0;
227 if (__len <= 32) {
242 _Size __z = __hash_len_16(__loadword<_Size>(__s + __len - 48) + __len,
249 __len = (__len - 1) & ~static_cast<_Size>(63);
[all …]
/freebsd-13.1/contrib/llvm-project/libcxx/include/__algorithm/
H A Dstable_sort.h103 typename iterator_traits<_RandomAccessIterator>::difference_type __len,
113 switch (__len) in __stable_sort_move()
140 if (__len <= 8) in __stable_sort_move()
145 typename iterator_traits<_RandomAccessIterator>::difference_type __l2 = __len / 2; in __stable_sort_move()
148 … _VSTD::__stable_sort<_Compare>(__m, __last1, __comp, __len - __l2, __first2 + __l2, __len - __l2); in __stable_sort_move()
161 typename iterator_traits<_RandomAccessIterator>::difference_type __len, in __stable_sort() argument
166 switch (__len) in __stable_sort()
183 if (__len <= __buff_size) in __stable_sort()
190 __d.__set(__len, (value_type*)nullptr); in __stable_sort()
211 difference_type __len = __last - __first; in stable_sort() local
[all …]
H A Dstable_partition.h34 if (__len == 1) in __stable_partition()
36 if (__len == 2) in __stable_partition()
46 if (__len <= __p.second) in __stable_partition()
83 _Distance __len2 = __len / 2; // __len2 >= 2 in __stable_partition()
95 _Distance __len_half = __len - __len2; in __stable_partition()
135 if (__len >= __alloc_limit) in __stable_partition()
152 if (__len == 2) in __stable_partition()
157 if (__len == 3) in __stable_partition()
170 if (__len <= __p.second) in __stable_partition()
234 __len_half = __len - __len2; in __stable_partition()
[all …]
H A Dpush_heap.h30 typename iterator_traits<_RandomAccessIterator>::difference_type __len) in __sift_up() argument
33 if (__len > 1) in __sift_up()
35 __len = (__len - 2) / 2; in __sift_up()
36 _RandomAccessIterator __ptr = __first + __len; in __sift_up()
44 if (__len == 0) in __sift_up()
46 __len = (__len - 1) / 2; in __sift_up()
47 __ptr = __first + __len; in __sift_up()
H A Dsift_down.h29 typename iterator_traits<_RandomAccessIterator>::difference_type __len, in __sift_down() argument
38 if (__len < 2 || (__len - 2) / 2 < __child) in __sift_down()
44 if ((__child + 1) < __len && __comp(*__child_i, *(__child_i + 1))) { in __sift_down()
62 if ((__len - 2) / 2 < __child) in __sift_down()
69 if ((__child + 1) < __len && __comp(*__child_i, *(__child_i + 1))) { in __sift_down()
H A Dpartition_point.h30 difference_type __len = _VSTD::distance(__first, __last); in partition_point() local
31 while (__len != 0) in partition_point()
33 difference_type __l2 = _VSTD::__half_positive(__len); in partition_point()
39 __len -= __l2 + 1; in partition_point()
42 __len = __l2; in partition_point()
H A Dlower_bound.h31 difference_type __len = _VSTD::distance(__first, __last); in __lower_bound() local
32 while (__len != 0) in __lower_bound()
34 difference_type __l2 = _VSTD::__half_positive(__len); in __lower_bound()
40 __len -= __l2 + 1; in __lower_bound()
43 __len = __l2; in __lower_bound()
H A Dupper_bound.h31 difference_type __len = _VSTD::distance(__first, __last); in __upper_bound() local
32 while (__len != 0) in __upper_bound()
34 difference_type __l2 = _VSTD::__half_positive(__len); in __upper_bound()
38 __len = __l2; in __upper_bound()
42 __len -= __l2 + 1; in __upper_bound()
H A Dequal_range.h34 difference_type __len = _VSTD::distance(__first, __last); in __equal_range() local
35 while (__len != 0) in __equal_range()
37 difference_type __l2 = _VSTD::__half_positive(__len); in __equal_range()
43 __len -= __l2 + 1; in __equal_range()
48 __len = __l2; in __equal_range()
H A Dis_heap_until.h30 difference_type __len = __last - __first; in is_heap_until() local
34 while (__c < __len) in is_heap_until()
41 if (__c == __len) in is_heap_until()
H A Dpop_heap.h32 typename iterator_traits<_RandomAccessIterator>::difference_type __len) in __pop_heap() argument
34 if (__len > 1) in __pop_heap()
37 _VSTD::__sift_down<_Compare>(__first, __last, __comp, __len - 1, __first); in __pop_heap()
H A Dnth_element.h55 difference_type __len = __last - __first; in __nth_element() local
56 switch (__len) in __nth_element()
72 if (__len <= __limit) in __nth_element()
78 _RandomAccessIterator __m = __first + __len/2; in __nth_element()
H A Dpartial_sort.h36 typename iterator_traits<_RandomAccessIterator>::difference_type __len = __middle - __first; in __partial_sort() local
42 _VSTD::__sift_down<_Compare>(__first, __middle, __comp, __len, __first); in __partial_sort()
H A Dpartial_sort_copy.h41 … typename iterator_traits<_RandomAccessIterator>::difference_type __len = __r - __result_first; in __partial_sort_copy() local
46 _VSTD::__sift_down<_Compare>(__result_first, __r, __comp, __len, __result_first); in __partial_sort_copy()
H A Dsort.h281 difference_type __len = __last - __first; in __sort()
282 switch (__len) in __sort()
301 if (__len <= __limit) in __sort()
313 if (__len >= 1000) in __sort()
315 __delta = __len/2; in __sort()
322 __delta = __len/2; in __sort()
H A Dsearch_n.h67 _Size __len = static_cast<_Size>(__last - __first); in __search_n() local
68 if (__len < __count) in __search_n()
/freebsd-13.1/contrib/llvm-project/libcxx/include/
H A D__bsd_locale_fallbacks.h49 size_t __len, mbstate_t *__ps, locale_t __l) in __libcpp_wcsnrtombs_l() argument
52 return wcsnrtombs(__dest, __src, __nwc, __len, __ps); in __libcpp_wcsnrtombs_l()
64 size_t __len, mbstate_t *__ps, locale_t __l) in __libcpp_mbsnrtowcs_l() argument
67 return mbsnrtowcs(__dest, __src, __nms, __len, __ps); in __libcpp_mbsnrtowcs_l()
100 size_t __libcpp_mbsrtowcs_l(wchar_t *__dest, const char **__src, size_t __len, in __libcpp_mbsrtowcs_l() argument
104 return mbsrtowcs(__dest, __src, __len, __ps); in __libcpp_mbsrtowcs_l()
H A Dstring_view265 basic_string_view(const _CharT* __s, size_type __len) _NOEXCEPT
266 : __data(__s), __size(__len)
858 basic_string_view<char> operator "" sv(const char *__str, size_t __len) _NOEXCEPT
860 return basic_string_view<char> (__str, __len);
864 basic_string_view<wchar_t> operator "" sv(const wchar_t *__str, size_t __len) _NOEXCEPT
866 return basic_string_view<wchar_t> (__str, __len);
871 basic_string_view<char8_t> operator "" sv(const char8_t *__str, size_t __len) _NOEXCEPT
873 return basic_string_view<char8_t> (__str, __len);
878 basic_string_view<char16_t> operator "" sv(const char16_t *__str, size_t __len) _NOEXCEPT
880 return basic_string_view<char16_t> (__str, __len);
[all …]
H A Dstreambuf412 const streamsize __len = _VSTD::min(static_cast<streamsize>(INT_MAX),
414 traits_type::copy(__s, __ninp_, __len);
415 __s += __len;
416 __i += __len;
417 this->gbump(__len);
H A D__string222 size_t __len = 0;
224 ++__len;
225 return __len;
523 ++__len;
524 return __len;
621 ++__len;
622 return __len;
722 ++__len;
723 return __len;
842 ++__len;
[all …]
H A Dostream708 const _CharT* __str, size_t __len)
721 __str + __len :
723 __str + __len,
819 size_t __len = char_traits<char>::length(__strn);
824 if (__len > __bs)
826 __wb = (_CharT*)malloc(__len*sizeof(_CharT));
836 __wb + __len :
838 __wb + __len,
/freebsd-13.1/sys/sys/
H A Dsystm.h288 size_t __r, __len, *__outlen; \
290 __len = (len); \
292 __r = strlcpy((dst), (src), __len); \
294 *__outlen = ((__r >= __len) ? __len : __r + 1); \
295 ((__r >= __len) ? ENAMETOOLONG : 0); \
/freebsd-13.1/contrib/llvm-project/clang/lib/Headers/
H A Dvecintrin.h31 __constant_pow2_range(__len, 64, 4096);
1554 unsigned int __len) { in vec_store_len() argument
1560 unsigned int __len) { in vec_store_len() argument
1566 unsigned int __len) { in vec_store_len() argument
1572 unsigned int __len) { in vec_store_len() argument
1578 unsigned int __len) { in vec_store_len() argument
1584 unsigned int __len) { in vec_store_len() argument
1590 unsigned int __len) { in vec_store_len() argument
1596 unsigned int __len) { in vec_store_len() argument
1603 unsigned int __len) { in vec_store_len() argument
[all …]
/freebsd-13.1/usr.sbin/bsdconfig/share/
H A Dstrings.subr79 local __tmp="$1" __start="${2:-1}" __len="$3"
83 eval echo \"\${__tmp:\$__start${__len:+:\$__len}}\"
86 if [ "$__len" ]; then
87 eval $__var_to_set=\"\${__tmp:\$__start:\$__len}\"

12