Home
last modified time | relevance | path

Searched refs:__cap (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__charconv/
H A Dto_chars_integral.h124 ptrdiff_t __cap = __last - __first;
126 if (__n > __cap)
159 ptrdiff_t __cap = __last - __first;
161 if (__n > __cap)
194 ptrdiff_t __cap = __last - __first;
196 if (__n > __cap)
283 ptrdiff_t __cap = __last - __first;
285 if (__n > __cap)
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dstring1493 size_type __cap = capacity();
1495 if (__cap - __sz >= __n) {
1502 __grow_by_without_replace(__cap, __sz + __n - __cap, __sz, __ip, 0, __n);
1976 size_type __cap =
1979 auto __allocation = std::__allocate_at_least(__alloc(), __cap + 1);
2019 size_type __cap =
2022 auto __allocation = std::__allocate_at_least(__alloc(), __cap + 1);
2058 size_type __cap = __is_short ? static_cast<size_type>(__min_cap) : __get_long_cap();
2059 if (__n < __cap) {
2071 __grow_by_and_replace(__cap - 1, __n - __cap + 1, __sz, 0, __sz, __n, __s);
[all …]
H A Dvector912 const size_type __cap = capacity();
913 if (__cap >= __ms / 2)
915 return std::max<size_type>(2 * __cap, __new_size);
1622 _LIBCPP_HIDE_FROM_ABI size_type& __cap() _NOEXCEPT { return __cap_alloc_.first(); }
1623 _LIBCPP_HIDE_FROM_ABI const size_type& __cap() const _NOEXCEPT { return __cap_alloc_.first(); }
1648 __storage_traits::deallocate(__vec_.__alloc(), __vec_.__begin_, __vec_.__cap());
1688 …_HIDE_FROM_ABI size_type capacity() const _NOEXCEPT { return __internal_cap_to_external(__cap()); }
1769 __storage_traits::deallocate(__alloc(), __begin_, __cap());
1792 // Precondition: __begin_ == __end_ == __cap() == 0
1802 __cap() = __allocation.count;
[all …]
H A D__split_buffer98 _LIBCPP_HIDE_FROM_ABI __split_buffer(size_type __cap, size_type __start, __alloc_rr& __a);
316 __split_buffer<_Tp, _Allocator>::__split_buffer(size_type __cap, size_type __start, __alloc_rr& __a)
318 if (__cap == 0) {
321 auto __allocation = std::__allocate_at_least(__alloc(), __cap);
323 __cap = __allocation.count;
326 __end_cap() = __first_ + __cap;
/freebsd/contrib/llvm-project/libcxx/include/
H A Dstring1425 size_type __cap = capacity();
1429 if (__cap - __sz < __n)
1430 __grow_by_without_replace(__cap, __sz + __n - __cap, __sz, __sz, 0);
2144 size_type __cap = capacity();
2146 if (__cap - __sz >= __n) {
2153 __grow_by_without_replace(__cap, __sz + __n - __cap, __sz, __ip, 0, __n);
2704 size_type __cap =
2708 auto __allocation = std::__allocate_at_least(__alloc_, __cap + 1);
2747 size_type __cap =
2749 auto __allocation = std::__allocate_at_least(__alloc_, __cap + 1);
[all …]
H A D__split_buffer100 __split_buffer(size_type __cap, size_type __start, __alloc_rr& __a);
325 __split_buffer<_Tp, _Allocator>::__split_buffer(size_type __cap, size_type __start, __alloc_rr& __a)
327 if (__cap == 0) {
330 auto __allocation = std::__allocate_at_least(__alloc_, __cap);
332 __cap = __allocation.count;
335 __cap_ = __first_ + __cap;
H A Distream1304 … if (auto __cap = __str.max_size() - __str.size(); __cap > static_cast<size_t>(__last - __first)) {
1313 __str.append(__first, __cap);
1314 __bump_stream(__first, __1buf, __buffer, __cap);
/freebsd/contrib/llvm-project/libcxx/include/__vector/
H A Dvector_bool.h549 const size_type __cap = capacity();
550 if (__cap >= __ms / 2)
552 return std::max<size_type>(2 * __cap, __align_it(__new_size));
H A Dvector.h904 const size_type __cap = capacity(); in __recommend() local
905 if (__cap >= __ms / 2) in __recommend()
907 return std::max<size_type>(2 * __cap, __new_size); in __recommend()
/freebsd/sys/dev/cxgbe/common/
H A Dt4_hw.c4504 #define CAP16_TO_CAP32(__cap) \ in fwcaps16_to_caps32() argument
4506 if (caps16 & FW_PORT_CAP_##__cap) \ in fwcaps16_to_caps32()
4507 caps32 |= FW_PORT_CAP32_##__cap; \ in fwcaps16_to_caps32()
4544 #define CAP32_TO_CAP16(__cap) \ in fwcaps32_to_caps16() argument
4546 if (caps32 & FW_PORT_CAP32_##__cap) \ in fwcaps32_to_caps16()
4547 caps16 |= FW_PORT_CAP_##__cap; \ in fwcaps32_to_caps16()