/third_party/boost/libs/wave/src/cpplexer/re2clex/ |
D | aq.cpp | 38 std::size_t new_size = q->max_size << 1; in aq_grow() 43 BOOST_ASSERT(q->max_size < 100000); in aq_grow() 44 BOOST_ASSERT(q->size <= q->max_size); in aq_grow() 47 ((q->tail + q->max_size + 1) - q->head) % q->max_size == \ in aq_grow() 48 q->size % q->max_size) in aq_grow() 51 BOOST_ASSERT(q->head <= q->max_size); in aq_grow() 52 BOOST_ASSERT(q->tail <= q->max_size); in aq_grow() 64 memcpy(q->queue + q->max_size, q->queue, in aq_grow() 66 q->tail += q->max_size; in aq_grow() 68 q->max_size = new_size; in aq_grow() [all …]
|
/third_party/boost/boost/log/expressions/formatters/ |
D | max_size_decorator.hpp | 103 …_output_terminal(LeftT const& left, subactor_type const& sub, size_type max_size, string_type cons… in max_size_decorator_output_terminal() argument 104 m_left(left), m_subactor(sub), m_max_size(max_size), m_overflow_marker(overflow_marker) in max_size_decorator_output_terminal() 106 BOOST_ASSERT(overflow_marker.size() <= max_size); in max_size_decorator_output_terminal() 129 const size_type old_max_size = strm.rdbuf()->max_size(); in operator ()() 130 …= strm.rdbuf()->storage()->size(), max_size_left = strm.rdbuf()->storage()->max_size() - start_pos; in operator ()() 131 … strm.rdbuf()->max_size(start_pos + (m_max_size <= max_size_left ? m_max_size : max_size_left)); in operator ()() 146 strm.rdbuf()->max_size(strm.rdbuf()->max_size() - m_overflow_marker.size()); in operator ()() 149 strm.rdbuf()->max_size(strm.rdbuf()->storage()->max_size()); in operator ()() 160 strm.rdbuf()->max_size(old_max_size); in operator ()() 165 strm.rdbuf()->max_size(old_max_size); in operator ()() [all …]
|
/third_party/boost/boost/log/detail/ |
D | attachable_sstream_buf.hpp | 74 size_type max_size; member 78 … BOOST_CONSTEXPR storage_state() BOOST_NOEXCEPT : storage(NULL), max_size(0u), overflow(false) in storage_state() 112 m_storage_state.max_size = 0u; in detach() 120 attach(storage, storage.max_size()); in attach() 124 void attach(string_type& storage, size_type max_size) in attach() argument 128 this->max_size(max_size); in attach() 135 size_type max_size() const BOOST_NOEXCEPT { return m_storage_state.max_size; } in max_size() function in boost::aux::basic_ostringstreambuf 137 void max_size(size_type size) in max_size() function in boost::aux::basic_ostringstreambuf 141 const size_type storage_max_size = m_storage_state.storage->max_size(); in max_size() 145 m_storage_state.max_size = size; in max_size() [all …]
|
D | code_conversion.hpp | 41 …pl(const wchar_t* str1, std::size_t len, std::string& str2, std::size_t max_size, std::locale cons… 43 …impl(const char* str1, std::size_t len, std::wstring& str2, std::size_t max_size, std::locale cons… 48 …l(const char16_t* str1, std::size_t len, std::string& str2, std::size_t max_size, std::locale cons… 50 …pl(const char* str1, std::size_t len, std::u16string& str2, std::size_t max_size, std::locale cons… 52 …(const char16_t* str1, std::size_t len, std::wstring& str2, std::size_t max_size, std::locale cons… 56 …l(const char32_t* str1, std::size_t len, std::string& str2, std::size_t max_size, std::locale cons… 58 …pl(const char* str1, std::size_t len, std::u32string& str2, std::size_t max_size, std::locale cons… 60 …(const char32_t* str1, std::size_t len, std::wstring& str2, std::size_t max_size, std::locale cons… 64 …onst char16_t* str1, std::size_t len, std::u32string& str2, std::size_t max_size, std::locale cons… 66 …onst char32_t* str1, std::size_t len, std::u16string& str2, std::size_t max_size, std::locale cons… [all …]
|
/third_party/boost/boost/lockfree/ |
D | spsc_queue.hpp | 66 static size_t next_index(size_t arg, size_t max_size) in next_index() argument 69 while (BOOST_UNLIKELY(ret >= max_size)) in next_index() 70 ret -= max_size; in next_index() 74 static size_t read_available(size_t write_index, size_t read_index, size_t max_size) in read_available() argument 79 const size_t ret = write_index + max_size - read_index; in read_available() 83 static size_t write_available(size_t write_index, size_t read_index, size_t max_size) in write_available() argument 87 ret += max_size; in write_available() 91 size_t read_available(size_t max_size) const in read_available() 95 return read_available(write_index, read_index, max_size); in read_available() 98 size_t write_available(size_t max_size) const in write_available() [all …]
|
/third_party/boost/libs/log/src/ |
D | code_conversion.cpp | 69 …rceCharT* end, std::basic_string< TargetCharT >& converted, std::size_t max_size, FacetT const& fa… 76 … std::size_t buf_size = (std::min)(max_size, sizeof(converted_buffer) / sizeof(*converted_buffer)); 94 max_size -= dest - converted_buffer; 100 … const std::size_t size = (std::min)(max_size, static_cast< std::size_t >(end - begin)); 103 max_size -= size; 114 max_size -= dest - converted_buffer; 134 buf_size = (std::min)(max_size, sizeof(converted_buffer) / sizeof(*converted_buffer)); 142 …pl(const wchar_t* str1, std::size_t len, std::string& str2, std::size_t max_size, std::locale cons… in code_convert_impl() argument 144 …return code_convert(str1, str1 + len, str2, max_size, std::use_facet< std::codecvt< wchar_t, char,… in code_convert_impl() 148 …impl(const char* str1, std::size_t len, std::wstring& str2, std::size_t max_size, std::locale cons… in code_convert_impl() argument [all …]
|
/third_party/boost/boost/beast/core/impl/ |
D | read_size.hpp | 36 std::size_t max_size, std::true_type) in read_size() argument 38 return read_size_helper(buffer, max_size); in read_size() 44 std::size_t max_size, std::false_type) in read_size() argument 50 auto const limit = buffer.max_size() - size; in read_size() 51 BOOST_ASSERT(size <= buffer.max_size()); in read_size() 54 std::min<std::size_t>(max_size, limit)); in read_size() 62 DynamicBuffer& buffer, std::size_t max_size) in read_size() argument 64 return detail::read_size(buffer, max_size, in read_size() 71 DynamicBuffer& buffer, std::size_t max_size) in read_size_or_throw() argument 73 auto const n = read_size(buffer, max_size); in read_size_or_throw()
|
/third_party/boost/libs/beast/include/boost/beast/core/impl/ |
D | read_size.hpp | 36 std::size_t max_size, std::true_type) in read_size() argument 38 return read_size_helper(buffer, max_size); in read_size() 44 std::size_t max_size, std::false_type) in read_size() argument 50 auto const limit = buffer.max_size() - size; in read_size() 51 BOOST_ASSERT(size <= buffer.max_size()); in read_size() 54 std::min<std::size_t>(max_size, limit)); in read_size() 62 DynamicBuffer& buffer, std::size_t max_size) in read_size() argument 64 return detail::read_size(buffer, max_size, in read_size() 71 DynamicBuffer& buffer, std::size_t max_size) in read_size_or_throw() argument 73 auto const n = read_size(buffer, max_size); in read_size_or_throw()
|
/third_party/re2/re2/ |
D | sparse_array.h | 113 explicit SparseArray(int max_size); 159 int max_size() const { in max_size() function 212 if (static_cast<uint32_t>(i) >= static_cast<uint32_t>(max_size())) { in SetInternal() 271 sparse_(src.max_size()), in SparseArray() 272 dense_(src.max_size()) { in SparseArray() 273 std::copy_n(src.sparse_.data(), src.max_size(), sparse_.data()); in SparseArray() 274 std::copy_n(src.dense_.data(), src.max_size(), dense_.data()); in SparseArray() 288 PODArray<int> a(src.max_size()); 289 PODArray<IndexValue> b(src.max_size()); 294 std::copy_n(src.sparse_.data(), src.max_size(), sparse_.data()); [all …]
|
D | sparse_set.h | 72 explicit SparseSetT(int max_size); 109 int max_size() const { in max_size() function 145 if (static_cast<uint32_t>(i) >= static_cast<uint32_t>(max_size())) { in InsertInternal() 198 if (new_max_size > max_size()) { in resize() 199 const int old_max_size = max_size(); in resize() 222 assert(i < max_size()); in contains() 223 if (static_cast<uint32_t>(i) >= static_cast<uint32_t>(max_size())) { in contains() 234 assert(size_ < max_size()); in create_index() 240 template<typename Value> SparseSetT<Value>::SparseSetT(int max_size) : in SparseSetT() argument 241 sparse_(max_size), dense_(max_size) { in SparseSetT() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/ |
D | mempool.c | 19 mempool_create (mempool * mptr, const unsigned int size, unsigned int max_size, in mempool_create() argument 32 if (!max_size) in mempool_create() 33 max_size = (1 << 17); in mempool_create() 34 max_size = size + ALIGN_MASK > max_size ? size + ALIGN_MASK : max_size; in mempool_create() 36 *mptr = malloc (MEMPOOL_RESERVED + max_size); in mempool_create() 40 .malloc = malloc,.free = free,.size = MEMPOOL_RESERVED + max_size,.used = in mempool_create() 50 mempool_alloc (mempool * mptr, unsigned int size, unsigned int max_size) in mempool_alloc() argument 58 return mempool_create (mptr, size, max_size, (*mptr)->malloc, (*mptr)->free); in mempool_alloc()
|
/third_party/json/doc/examples/ |
D | max_size.cpp | 18 std::cout << j_null.max_size() << '\n'; in main() 19 std::cout << j_boolean.max_size() << '\n'; in main() 20 std::cout << j_number_integer.max_size() << '\n'; in main() 21 std::cout << j_number_float.max_size() << '\n'; in main() 22 std::cout << j_object.max_size() << '\n'; in main() 23 std::cout << j_array.max_size() << '\n'; in main() 24 std::cout << j_string.max_size() << '\n'; in main()
|
/third_party/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe12.c | 20 static ssize_t max_size, invalid_size; variable 43 memset(rdbuf, 0, max_size); in verify_pipe() 47 SAFE_WRITE(1, fds[1], wrbuf, max_size); in verify_pipe() 68 if (nbytes == max_size - tc->offset) in verify_pipe() 72 max_size, nbytes); in verify_pipe() 77 SAFE_READ(0, fds[0], rdbuf, max_size); in verify_pipe() 97 max_size = SAFE_FCNTL(fds[1], F_GETPIPE_SZ); in setup() 98 invalid_size = max_size + 4096; in setup() 100 rdbuf = SAFE_MALLOC(max_size); in setup()
|
/third_party/ffmpeg/libavformat/ |
D | voc_packet.c | 27 ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size) in ff_voc_get_packet() argument 47 if (max_size < 4) in ff_voc_get_packet() 48 max_size = 0; in ff_voc_get_packet() 62 max_size -= 4; in ff_voc_get_packet() 81 max_size -= 2; in ff_voc_get_packet() 94 max_size -= 4; in ff_voc_get_packet() 112 max_size -= 12; in ff_voc_get_packet() 117 max_size -= voc->remaining_size; in ff_voc_get_packet() 145 if (max_size <= 0) in ff_voc_get_packet() 146 max_size = 2048; in ff_voc_get_packet() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
D | cso_cache.c | 76 int max_size) in sanitize_hash() argument 79 sc->sanitize_cb(hash, type, max_size, sc->sanitize_data); in sanitize_hash() 84 int max_size, void *user_data) in sanitize_cb() argument 91 int max_entries = (max_size > hash_size) ? max_size : hash_size; in sanitize_cb() 92 int to_remove = (max_size < max_entries) * max_entries/4; in sanitize_cb() 93 if (hash_size > max_size) in sanitize_cb() 94 to_remove += hash_size - max_size; in sanitize_cb() 111 sanitize_hash(sc, hash, type, sc->max_size); in cso_insert_state() 163 sc->max_size = 4096; in cso_cache_init() 207 sc->max_size = number; in cso_set_maximum_cache_size() [all …]
|
/third_party/boost/libs/beast/test/beast/core/ |
D | flat_buffer.cpp | 36 BEAST_EXPECT(b.max_size() == 30); in testDynamicBuffer() 61 BEAST_EXPECT(b.max_size() == 500); in testSpecialMembers() 74 BEAST_EXPECT(b.max_size() == 500); in testSpecialMembers() 89 BEAST_EXPECT(b1.max_size() == b2.max_size()); in testSpecialMembers() 99 BEAST_EXPECT(b1.max_size() == b2.max_size()); in testSpecialMembers() 109 BEAST_EXPECT(b1.max_size() == b2.max_size()); in testSpecialMembers() 257 BEAST_EXPECT(b1.max_size() == 64); in testSpecialMembers() 269 BEAST_EXPECT(b2.max_size() == 32); in testSpecialMembers() 271 BEAST_EXPECT(b2.max_size() == b1.max_size()); in testSpecialMembers() 290 BEAST_EXPECT(b.max_size() == 10); in testSpecialMembers() [all …]
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitUtils.c | 172 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument 179 if (start_size > max_size || start_size < 1) in sljit_allocate_stack() 186 ptr = SLJIT_MALLOC(max_size, allocator_data); in sljit_allocate_stack() 193 stack->end = stack->min_start + max_size; in sljit_allocate_stack() 236 …it_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_… in sljit_allocate_stack() argument 244 if (start_size > max_size || start_size < 1) in sljit_allocate_stack() 253 max_size = (max_size + page_align) & ~page_align; in sljit_allocate_stack() 256 ptr = VirtualAlloc(NULL, max_size, MEM_RESERVE, PAGE_READWRITE); in sljit_allocate_stack() 263 stack->end = stack->min_start + max_size; in sljit_allocate_stack() 272 ptr = mmap(NULL, max_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack() [all …]
|
/third_party/mindspore/mindspore/lite/tools/converter/quantizer/ |
D | fse_encoder.cc | 308 … int table_log, uint8_t *out8, size_t max_size, size_t *out_size) { in SerializingToTensor() argument 316 if (offset + sizeof(uint16_t) > max_size) { in SerializingToTensor() 318 << " offset:" << offset << " max_size:" << max_size; in SerializingToTensor() 324 if (offset + sizeof(uint32_t) > max_size) { in SerializingToTensor() 326 << " offset:" << offset << " max_size:" << max_size; in SerializingToTensor() 332 if (offset + sizeof(uint32_t) > max_size) { in SerializingToTensor() 334 << " offset:" << offset << " max_size:" << max_size; in SerializingToTensor() 341 if (offset + sizeof(uint16_t) > max_size) { in SerializingToTensor() 343 << " offset:" << offset << " max_size:" << max_size; in SerializingToTensor() 350 if (offset + sizeof(float) > max_size) { in SerializingToTensor() [all …]
|
/third_party/json/test/src/ |
D | unit-capacity.cpp | 444 CHECK(j.max_size() == 1); 445 CHECK(j_const.max_size() == 1); 456 CHECK(j.max_size() == 1); 457 CHECK(j_const.max_size() == 1); 470 CHECK(j.max_size() >= j.size()); 471 CHECK(j_const.max_size() >= j_const.size()); 482 CHECK(j.max_size() >= j.size()); 483 CHECK(j_const.max_size() >= j_const.size()); 497 CHECK(j.max_size() >= j.size()); 498 CHECK(j_const.max_size() >= j_const.size()); [all …]
|
/third_party/boost/libs/contract/example/features/ |
D | introduction_public.cpp | 15 BOOST_CONTRACT_ASSERT(capacity() <= max_size()); in invariant() 23 virtual unsigned max_size() const = 0; 32 BOOST_CONTRACT_ASSERT(capacity() < max_size()); in push_back() 62 BOOST_CONTRACT_ASSERT(size() < max_size()); in push_back() 75 unsigned max_size() const { return vect_.max_size(); } in max_size() function in vector
|
D | access.cpp | 16 BOOST_CONTRACT_ASSERT(capacity() <= max_size()); in invariant() 25 virtual unsigned max_size() const = 0; 34 BOOST_CONTRACT_ASSERT(capacity() < max_size()); in push_back() 68 BOOST_CONTRACT_ASSERT(size() < max_size()); in push_back() 82 unsigned max_size() const { return vect_.max_size(); } in max_size() function in vector
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | udpsrc.c | 147 gsize max_size; in GST_START_TEST() local 194 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() 195 fail_unless (max_size <= 2000); in GST_START_TEST() 201 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() 202 fail_unless (max_size <= 2000); in GST_START_TEST() 208 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() 209 fail_unless (max_size <= 2000); in GST_START_TEST() 215 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() 216 fail_unless (max_size <= 2000); in GST_START_TEST() 222 gst_memory_get_sizes (mem, NULL, &max_size); in GST_START_TEST() [all …]
|
/third_party/boost/boost/asio/detail/ |
D | consuming_buffers.hpp | 96 prepared_buffers_type prepare(std::size_t max_size) in prepare() argument 105 while (next != end && max_size > 0 && (result.count) < result.max_buffers) in prepare() 108 result.elems[result.count] = boost::asio::buffer(next_buf, max_size); in prepare() 109 max_size -= result.elems[result.count].size(); in prepare() 180 Buffer prepare(std::size_t max_size) in prepare() argument 182 return boost::asio::buffer(buffer_ + total_consumed_, max_size); in prepare() 293 boost::array<Buffer, 2> prepare(std::size_t max_size) in prepare() argument 298 result[0] = boost::asio::buffer(result[0] + total_consumed_, max_size); in prepare() 302 max_size - result[0].size()); in prepare() 345 std::array<Buffer, 2> prepare(std::size_t max_size) in prepare() argument [all …]
|
/third_party/boost/libs/asio/include/boost/asio/detail/ |
D | consuming_buffers.hpp | 96 prepared_buffers_type prepare(std::size_t max_size) in prepare() argument 105 while (next != end && max_size > 0 && (result.count) < result.max_buffers) in prepare() 108 result.elems[result.count] = boost::asio::buffer(next_buf, max_size); in prepare() 109 max_size -= result.elems[result.count].size(); in prepare() 180 Buffer prepare(std::size_t max_size) in prepare() argument 182 return boost::asio::buffer(buffer_ + total_consumed_, max_size); in prepare() 293 boost::array<Buffer, 2> prepare(std::size_t max_size) in prepare() argument 298 result[0] = boost::asio::buffer(result[0] + total_consumed_, max_size); in prepare() 302 max_size - result[0].size()); in prepare() 345 std::array<Buffer, 2> prepare(std::size_t max_size) in prepare() argument [all …]
|
/third_party/grpc/src/proto/grpc/lb/v1/ |
D | load_balancer.options | 1 grpc.lb.v1.InitialLoadBalanceRequest.name max_size:128 2 grpc.lb.v1.InitialLoadBalanceResponse.load_balancer_delegate max_size:64 3 grpc.lb.v1.Server.ip_address max_size:16 4 grpc.lb.v1.Server.load_balance_token max_size:50
|