/third_party/ffmpeg/libavcodec/ |
D | motionpixels.c | 58 MotionPixelsContext *mp = avctx->priv_data; in mp_decode_end() local 60 av_freep(&mp->changes_map); in mp_decode_end() 61 av_freep(&mp->vpt); in mp_decode_end() 62 av_freep(&mp->hpt); in mp_decode_end() 63 av_freep(&mp->bswapbuf); in mp_decode_end() 64 av_frame_free(&mp->frame); in mp_decode_end() 72 MotionPixelsContext *mp = avctx->priv_data; in mp_decode_init() local 81 mp->avctx = avctx; in mp_decode_init() 82 ff_bswapdsp_init(&mp->bdsp); in mp_decode_init() 83 mp->changes_map = av_mallocz_array(avctx->width, h4); in mp_decode_init() [all …]
|
D | mlp_parser.c | 57 MLPParseContext *mp = s->priv_data; in mlp_parse() local 74 if (!mp->in_sync) { in mlp_parse() 78 mp->pc.state = (mp->pc.state << 8) | buf[i]; in mlp_parse() 79 if ((mp->pc.state & 0xfffffffe) == 0xf8726fba && in mlp_parse() 81 mp->pc.index + i >= 7) { in mlp_parse() 82 mp->in_sync = 1; in mlp_parse() 83 mp->bytes_left = 0; in mlp_parse() 88 if (!mp->in_sync) { in mlp_parse() 89 if (ff_combine_frame(&mp->pc, END_NOT_FOUND, &buf, &buf_size) != -1) in mlp_parse() 94 if ((ret = ff_combine_frame(&mp->pc, i - 7, &buf, &buf_size)) < 0) { in mlp_parse() [all …]
|
/third_party/boost/boost/spirit/home/support/iterators/detail/ |
D | combine_policies.hpp | 45 static void destroy(MultiPass& mp) in destroy() 47 Ownership::destroy(mp); in destroy() 48 Checking::destroy(mp); in destroy() 49 Input::destroy(mp); in destroy() 50 Storage::destroy(mp); in destroy() 62 inline static void clear_queue(MultiPass& mp) in clear_queue() 64 Checking::clear_queue(mp); in clear_queue() 65 Storage::clear_queue(mp); in clear_queue() 80 static void destroy(MultiPass& mp) in destroy() 82 Ownership::destroy(mp); in destroy() [all …]
|
D | fixed_size_queue_policy.hpp | 56 dereference(MultiPass const& mp) in dereference() argument 58 if (!mp.queued_position.get_position().is_initialized()) in dereference() 59 mp.queued_position.get_position().set_queue(&mp.shared()->queued_elements); in dereference() 61 if (mp.queued_position == mp.shared()->queued_elements.end()) in dereference() 62 return MultiPass::get_input(mp); in dereference() 64 return *mp.queued_position; in dereference() 71 static void increment(MultiPass& mp) in increment() argument 73 if (!mp.queued_position.get_position().is_initialized()) in increment() 74 mp.queued_position.get_position().set_queue(&mp.shared()->queued_elements); in increment() 76 if (mp.queued_position == mp.shared()->queued_elements.end()) in increment() [all …]
|
D | split_std_deque_policy.hpp | 53 dereference(MultiPass const& mp) in dereference() argument 55 queue_type& queue = mp.shared()->queued_elements; in dereference() 58 BOOST_ASSERT(mp.queued_position <= size); in dereference() 60 if (mp.queued_position == size) in dereference() 63 if (size >= threshold && MultiPass::is_unique(mp)) in dereference() 67 mp.queued_position = 0; in dereference() 69 return MultiPass::get_input(mp); in dereference() 72 return queue[mp.queued_position]; in dereference() 79 static void increment(MultiPass& mp) in increment() argument 81 queue_type& queue = mp.shared()->queued_elements; in increment() [all …]
|
D | split_functor_input_policy.hpp | 79 static typename MultiPass::reference get_input(MultiPass& mp) in get_input() argument 81 value_type& curtok = mp.shared()->curtok; in get_input() 84 functor_type::get_next(mp, curtok); in get_input() 89 static void advance_input(MultiPass& mp) in advance_input() argument 91 functor_type::get_next(mp, mp.shared()->curtok); in advance_input() 96 static bool input_at_eof(MultiPass const& mp) in input_at_eof() argument 98 return mp.shared()->curtok == functor_type::eof; in input_at_eof() 109 static void destroy(MultiPass& mp) in destroy() argument 111 functor_type::destroy(mp); in destroy() 142 static typename MultiPass::reference get_input(MultiPass& mp) in get_input() argument [all …]
|
/third_party/gettext/gettext-tools/src/ |
D | message.c | 128 message_ty *mp; in message_alloc() local 131 mp = XMALLOC (message_ty); in message_alloc() 132 mp->msgctxt = msgctxt; in message_alloc() 133 mp->msgid = msgid; in message_alloc() 134 mp->msgid_plural = (msgid_plural != NULL ? xstrdup (msgid_plural) : NULL); in message_alloc() 135 mp->msgstr = msgstr; in message_alloc() 136 mp->msgstr_len = msgstr_len; in message_alloc() 137 mp->pos = *pp; in message_alloc() 138 mp->comment = NULL; in message_alloc() 139 mp->comment_dot = NULL; in message_alloc() [all …]
|
D | xg-message.c | 111 decide_is_format (message_ty *mp) in decide_is_format() argument 119 if (mp->is_format[i] == undecided in decide_is_format() 124 && !(i == format_c && possible_format_p (mp->is_format[format_objc])) in decide_is_format() 125 && !(i == format_objc && possible_format_p (mp->is_format[format_c])) in decide_is_format() 130 && (possible_format_p (mp->is_format[format_qt]) in decide_is_format() 131 || possible_format_p (mp->is_format[format_qt_plural]) in decide_is_format() 132 || possible_format_p (mp->is_format[format_kde]) in decide_is_format() 133 || possible_format_p (mp->is_format[format_kde_kuit]) in decide_is_format() 134 || possible_format_p (mp->is_format[format_boost]))) in decide_is_format() 138 && possible_format_p (mp->is_format[format_kde_kuit])) in decide_is_format() [all …]
|
D | write-po.c | 243 message_print_comment (const message_ty *mp, ostream_t stream) in message_print_comment() argument 245 if (print_comment && mp->comment != NULL) in message_print_comment() 251 for (j = 0; j < mp->comment->nitems; ++j) in message_print_comment() 253 const char *s = mp->comment->item[j]; in message_print_comment() 284 message_print_comment_dot (const message_ty *mp, ostream_t stream) in message_print_comment_dot() argument 286 if (mp->comment_dot != NULL) in message_print_comment_dot() 292 for (j = 0; j < mp->comment_dot->nitems; ++j) in message_print_comment_dot() 294 const char *s = mp->comment_dot->item[j]; in message_print_comment_dot() 312 message_print_comment_filepos (const message_ty *mp, ostream_t stream, in message_print_comment_filepos() argument 316 && mp->filepos_count != 0) in message_print_comment_filepos() [all …]
|
D | msgl-iconv.c | 124 convert_prev_msgid (const iconveh_t *cd, message_ty *mp, in convert_prev_msgid() argument 127 if (mp->prev_msgctxt != NULL) in convert_prev_msgid() 128 mp->prev_msgctxt = convert_string (cd, mp->prev_msgctxt, context); in convert_prev_msgid() 129 if (mp->prev_msgid != NULL) in convert_prev_msgid() 130 mp->prev_msgid = convert_string (cd, mp->prev_msgid, context); in convert_prev_msgid() 131 if (mp->prev_msgid_plural != NULL) in convert_prev_msgid() 132 mp->prev_msgid_plural = convert_string (cd, mp->prev_msgid_plural, context); in convert_prev_msgid() 136 convert_msgid (const iconveh_t *cd, message_ty *mp, in convert_msgid() argument 139 if (mp->msgctxt != NULL) in convert_msgid() 140 mp->msgctxt = convert_string (cd, mp->msgctxt, context); in convert_msgid() [all …]
|
D | msgl-cat.c | 81 is_message_needed (const message_ty *mp) in is_message_needed() argument 84 && ((!is_header (mp) && mp->is_fuzzy) || mp->msgstr[0] == '\0')) in is_message_needed() 86 return mp->tmp->used < 0 && is_message_selected (mp->tmp); in is_message_needed() 89 return is_message_selected (mp->tmp); in is_message_needed() 95 is_message_first_needed (const message_ty *mp) in is_message_first_needed() argument 97 if (mp->tmp->obsolete && is_message_needed (mp)) in is_message_first_needed() 99 mp->tmp->obsolete = false; in is_message_first_needed() 295 message_ty *mp = mlp->item[j]; in catenate_msgdomain_list() local 299 tmp = message_list_search (total_mlp, mp->msgctxt, mp->msgid); in catenate_msgdomain_list() 302 if ((tmp->msgid_plural != NULL) != (mp->msgid_plural != NULL)) in catenate_msgdomain_list() [all …]
|
D | msgl-english.c | 42 message_ty *mp = mlp->item[j]; in msgdomain_list_english() local 44 if (mp->msgid_plural == NULL) in msgdomain_list_english() 46 if (mp->msgstr_len == 1 && mp->msgstr[0] == '\0') in msgdomain_list_english() 48 mp->msgstr = mp->msgid; /* no need for xstrdup */ in msgdomain_list_english() 49 mp->msgstr_len = strlen (mp->msgid) + 1; in msgdomain_list_english() 54 if (mp->msgstr_len == 2 in msgdomain_list_english() 55 && mp->msgstr[0] == '\0' && mp->msgstr[1] == '\0') in msgdomain_list_english() 57 size_t len0 = strlen (mp->msgid) + 1; in msgdomain_list_english() 58 size_t len1 = strlen (mp->msgid_plural) + 1; in msgdomain_list_english() 60 memcpy (cp, mp->msgid, len0); in msgdomain_list_english() [all …]
|
D | write-stringtable.c | 97 write_message (ostream_t stream, const message_ty *mp, in write_message() argument 101 if (mp->comment != NULL) in write_message() 105 for (j = 0; j < mp->comment->nitems; ++j) in write_message() 107 const char *s = mp->comment->item[j]; in write_message() 144 if (mp->comment_dot != NULL) in write_message() 148 for (j = 0; j < mp->comment_dot->nitems; ++j) in write_message() 150 const char *s = mp->comment_dot->item[j]; in write_message() 191 if (mp->filepos_count != 0) in write_message() 195 for (j = 0; j < mp->filepos_count; ++j) in write_message() 197 lex_pos_ty *pp = &mp->filepos[j]; in write_message() [all …]
|
D | msgl-ascii.c | 54 is_ascii_message (message_ty *mp) in is_ascii_message() argument 56 const char *p = mp->msgstr; in is_ascii_message() 57 const char *p_end = p + mp->msgstr_len; in is_ascii_message() 63 if (!is_ascii_string_list (mp->comment)) in is_ascii_message() 65 if (!is_ascii_string_list (mp->comment_dot)) in is_ascii_message() 70 if (!is_ascii_string (mp->msgid)) in is_ascii_message() 72 if (mp->msgid_plural != NULL && !is_ascii_string (mp->msgid_plural)) in is_ascii_message() 76 if (mp->msgctxt != NULL && !is_ascii_string (mp->msgctxt)) in is_ascii_message() 80 if (mp->prev_msgctxt != NULL && !is_ascii_string (mp->prev_msgctxt)) in is_ascii_message() 82 if (mp->prev_msgid != NULL && !is_ascii_string (mp->prev_msgid)) in is_ascii_message() [all …]
|
D | msgattrib.c | 557 is_message_selected (const message_ty *mp) in is_message_selected() argument 560 if (is_header (mp)) in is_message_selected() 564 && (mp->msgstr[0] == '\0' in is_message_selected() 570 && (mp->is_fuzzy in is_message_selected() 576 && (mp->obsolete in is_message_selected() 599 message_ty *mp = mlp->item[j]; in process_message_list() local 604 ? message_list_search (only_mlp, mp->msgctxt, mp->msgid) != NULL in process_message_list() 607 ? message_list_search (ignore_mlp, mp->msgctxt, mp->msgid) == NULL in process_message_list() 612 if ((to_change & ADD_PREV) && !is_header (mp) in process_message_list() 613 && !mp->is_fuzzy && mp->msgstr[0] != '\0') in process_message_list() [all …]
|
D | msgl-check.c | 314 message_ty *mp = mlp->item[j]; in check_plural() local 316 if (!mp->obsolete in check_plural() 317 && !(ignore_untranslated_messages && mp->msgstr[0] == '\0') in check_plural() 318 && !(ignore_fuzzy_messages && (mp->is_fuzzy && !is_header (mp))) in check_plural() 319 && mp->msgid_plural != NULL) in check_plural() 326 has_plural = mp; in check_plural() 329 for (p = mp->msgstr, p_end = p + mp->msgstr_len; in check_plural() 336 min_pos = mp; in check_plural() 341 max_pos = mp; in check_plural() 579 check_pair (const message_ty *mp, in check_pair() argument [all …]
|
D | write-properties.c | 210 write_message (ostream_t stream, const message_ty *mp, in write_message() argument 214 message_print_comment (mp, stream); in write_message() 217 message_print_comment_dot (mp, stream); in write_message() 220 message_print_comment_filepos (mp, stream, false, page_width); in write_message() 223 message_print_comment_flags (mp, stream, debug); in write_message() 227 if (is_header (mp) in write_message() 228 || mp->msgstr[0] == '\0' in write_message() 229 || (mp->is_fuzzy && !is_header (mp))) in write_message() 233 write_escaped_string (stream, mp->msgid, true); in write_message() 235 write_escaped_string (stream, mp->msgstr, false); in write_message() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/ |
D | simplify_countries.cpp | 26 MultiPolygon mp; in read_from_file() local 36 mp.push_back(pol); in read_from_file() 40 if (! mp.empty()) in read_from_file() 42 out << std::fixed << std::setprecision(19) << bg::wkt(mp); in read_from_file() 120 typedef bg::model::multi_polygon<polygon> mp; in test_all() typedef 126 std::string gr = read_from_file<mp>(base_folder + "gr.wkt"); in test_all() 127 std::string it = read_from_file<mp>(base_folder + "it.wkt"); in test_all() 128 std::string nl = read_from_file<mp>(base_folder + "nl.wkt"); in test_all() 129 std::string no = read_from_file<mp>(base_folder + "no.wkt"); in test_all() 130 std::string uk = read_from_file<mp>(base_folder + "uk.wkt"); in test_all() [all …]
|
/third_party/eudev/src/shared/ |
D | mempool.c | 33 void* mempool_alloc_tile(struct mempool *mp) { in mempool_alloc_tile() argument 39 assert(mp->tile_size >= sizeof(void*)); in mempool_alloc_tile() 40 assert(mp->at_least > 0); in mempool_alloc_tile() 42 if (mp->freelist) { in mempool_alloc_tile() 45 r = mp->freelist; in mempool_alloc_tile() 46 mp->freelist = * (void**) mp->freelist; in mempool_alloc_tile() 50 if (_unlikely_(!mp->first_pool) || in mempool_alloc_tile() 51 _unlikely_(mp->first_pool->n_used >= mp->first_pool->n_tiles)) { in mempool_alloc_tile() 56 n = mp->first_pool ? mp->first_pool->n_tiles : 0; in mempool_alloc_tile() 57 n = MAX(mp->at_least, n * 2); in mempool_alloc_tile() [all …]
|
/third_party/gettext/gettext-tools/libgettextpo/ |
D | gettext-po.c | 502 message_ty *mp = (message_ty *) message; in po_message_insert() local 509 message_list_insert_at (iterator->mlp, iterator->index, mp); in po_message_insert() 532 message_ty *mp = (message_ty *) message; in po_message_msgctxt() local 534 return mp->msgctxt; in po_message_msgctxt() 543 message_ty *mp = (message_ty *) message; in po_message_set_msgctxt() local 545 if (msgctxt != mp->msgctxt) in po_message_set_msgctxt() 547 char *old_msgctxt = (char *) mp->msgctxt; in po_message_set_msgctxt() 549 mp->msgctxt = (msgctxt != NULL ? xstrdup (msgctxt) : NULL); in po_message_set_msgctxt() 561 message_ty *mp = (message_ty *) message; in po_message_msgid() local 563 return mp->msgid; in po_message_msgid() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/disjoint/ |
D | disjoint_multi.cpp | 29 typedef bg::model::multi_polygon<polygon> mp; in test_all() typedef 31 test_disjoint<mp, mp>("", in test_all() 37 test_disjoint<mp, mp>("", in test_all() 43 test_disjoint<mp, mp>("", in test_all() 49 test_disjoint<mp, mp>("no_ips", in test_all() 55 test_disjoint<mp, mp>("no_ips2", in test_all() 60 test_disjoint<mp, mp>("no_ips2_rev", in test_all() 66 test_disjoint<P, mp>("point_mp1", in test_all() 71 test_disjoint<P, mp>("point_mp2", in test_all() 76 test_disjoint<P, mp>("point_mp1", in test_all() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/touches/ |
D | touches_multi.cpp | 20 typedef bg::model::multi_polygon<polygon> mp; in test_all() typedef 24 test_self_touches<mp>("MULTIPOLYGON(((0 0,0 100,100 100,100 0,0 0)))", in test_all() 28 test_touches<mp, mp>("MULTIPOLYGON(((0 0,0 100,100 100,100 0,0 0)))", in test_all() 33 test_touches<mp, mp>("MULTIPOLYGON(((0 0,0 100,100 100,100 0,0 0)))", in test_all() 38 test_touches<mp, mp>("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((20 0,20 10,30 10,30 0,20 0)))", in test_all() 43 …test_touches<mp, mp>("MULTIPOLYGON(((0 0,0 5,0 10,5 10,10 10,10 5,10 0,5 0,0 0)),((20 0,20 10,30 1… in test_all() 48 test_touches<mp, mp>("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((20 0,20 10,30 10,30 0,20 0)))", in test_all() 53 test_touches<mp, mp>("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((20 0,20 10,30 10,30 0,20 0)))", in test_all() 58 test_touches<mp, ml>("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((20 0,20 10,30 10,30 0,20 0)))", in test_all() 62 test_touches<mp, ml>("MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((20 0,20 10,30 10,30 0,20 0)))", in test_all() [all …]
|
/third_party/python/Objects/ |
D | dictobject.c | 230 static Py_ssize_t lookdict(PyDictObject *mp, PyObject *key, 232 static Py_ssize_t lookdict_unicode(PyDictObject *mp, PyObject *key, 235 lookdict_unicode_nodummy(PyDictObject *mp, PyObject *key, 237 static Py_ssize_t lookdict_split(PyDictObject *mp, PyObject *key, 240 static int dictresize(PyDictObject *mp, Py_ssize_t newsize); 502 PyDictObject *mp = (PyDictObject *)op; in _PyDict_CheckConsistency() local 504 PyDictKeysObject *keys = mp->ma_keys; in _PyDict_CheckConsistency() 505 int splitted = _PyDict_HasSplitTable(mp); in _PyDict_CheckConsistency() 508 CHECK(0 <= mp->ma_used && mp->ma_used <= usable); in _PyDict_CheckConsistency() 554 for (i=0; i < mp->ma_used; i++) { in _PyDict_CheckConsistency() [all …]
|
/third_party/mindspore/tests/ut/python/parallel/ |
D | test_dsd_matmul.py | 46 def __init__(self, batch_size, num_heads, dp, mp, shard=True): argument 67 … self.dsd_matmul.shard(((dp, mp, 1, 1, 1, 1, 1), (dp, mp, 1, 1, 1, 1, 1), (dp, mp, 1, 1))) 68 self.dense1.matmul.shard(((dp, 1), (mp, 1))) 69 self.dense2.matmul.shard(((dp, 1), (mp, 1))) 70 self.dense2.matmul.shard(((dp, 1), (mp, 1))) 71 self.transpose.shard(((dp, 1, mp, 1),)) 72 self.transpose1.shard(((dp, mp, 1, 1, 1, 1),)) 118 def compile_graph(batch_size, num_heads, dp, mp, auto=False, shard=True): argument 124 net = GradWrap(NetWithLoss(Net(batch_size, num_heads, dp, mp, shard=shard))) 134 mp = 8 [all …]
|
D | test_cus_matmul_dds.py | 41 def __init__(self, batch_size, num_heads, dp, mp, shard=True): argument 62 self.cus_matmul.shard(((mp, dp, 1, 1), (mp, dp, 1, 1), (1, dp, 1, 1), (dp, 1, 1, 1))) 63 self.dense1.matmul.shard(((dp, 1), (mp, 1))) 64 self.dense2.matmul.shard(((dp, 1), (mp, 1))) 65 self.transpose.shard(((dp, 1, mp, 1),)) 102 def compile_graph(batch_size, num_heads, dp, mp, auto=False, shard=True): argument 108 net = GradWrap(NetWithLoss(Net(batch_size, num_heads, dp, mp, shard=shard))) 118 mp = 8 119 compile_graph(batch_size, num_heads, dp, mp) 126 mp = 1 [all …]
|