/AliOS-Things-master/components/py_engine/engine/py/ |
A D | qstr.c | 55 #define Q_GET_HASH(q) ((mp_uint_t)(q)[0]) argument 56 #define Q_SET_HASH(q, hash) do { (q)[0] = (hash); } while (0) argument 59 #define Q_GET_HASH(q) ((mp_uint_t)(q)[0] | ((mp_uint_t)(q)[1] << 8)) argument 60 #define Q_SET_HASH(q, hash) do { (q)[0] = (hash); (q)[1] = (hash) >> 8; } while (0) argument 67 #define Q_GET_LENGTH(q) ((q)[MICROPY_QSTR_BYTES_IN_HASH]) argument 70 …#define Q_GET_LENGTH(q) ((q)[MICROPY_QSTR_BYTES_IN_HASH] | ((q)[MICROPY_QSTR_BYTES_IN_HASH + 1] <<… argument 180 for (const byte **q = pool->qstrs, **q_top = pool->qstrs + pool->len; q < q_top; q++) { in qstr_find_strn() local 198 if (q == 0) { in qstr_from_strn() 256 return q; in qstr_from_strn() 289 for (const byte **q = pool->qstrs, **q_top = pool->qstrs + pool->len; q < q_top; q++) { in qstr_pool_info() local [all …]
|
A D | repl.c | 167 for (qstr q = MP_QSTR_ + 1; q < nqstr; ++q) { in find_completions() local 169 const char *d_str = (const char *)qstr_data(q, &d_len); in find_completions() 176 if (test_qstr(obj, q)) { in find_completions() 191 *q_first = q; in find_completions() 193 *q_last = q; in find_completions() 208 for (qstr q = q_first; q <= q_last; ++q) { in print_completions() local 210 const char *d_str = (const char *)qstr_data(q, &d_len); in print_completions() 212 if (test_qstr(obj, q)) { in print_completions() 267 qstr q = qstr_find_strn(s_start, s_len); in mp_repl_autocomplete() local 268 if (q == MP_QSTRnull) { in mp_repl_autocomplete() [all …]
|
/AliOS-Things-master/components/linkkit/external/nghttp2/ |
A D | nghttp2_outbound_item.c | 102 q->head = q->tail = NULL; in nghttp2_outbound_queue_init() 103 q->n = 0; in nghttp2_outbound_queue_init() 109 if (q->tail) { in nghttp2_outbound_queue_push() 110 q->tail = q->tail->qnext = item; in nghttp2_outbound_queue_push() 112 q->head = q->tail = item; in nghttp2_outbound_queue_push() 114 ++q->n; in nghttp2_outbound_queue_push() 120 if (!q->head) { in nghttp2_outbound_queue_pop() 123 item = q->head; in nghttp2_outbound_queue_pop() 124 q->head = q->head->qnext; in nghttp2_outbound_queue_pop() 126 if (!q->head) { in nghttp2_outbound_queue_pop() [all …]
|
A D | nghttp2_pq.c | 36 pq->q = NULL; in nghttp2_pq_init() 45 pq->q = NULL; in nghttp2_pq_free() 53 pq->q[i] = b; in swap() 55 pq->q[j] = a; in swap() 64 if (!pq->less(pq->q[index], pq->q[parent])) { in bubble_up() 86 pq->q = nq; in nghttp2_pq_push() 100 return pq->q[0]; in nghttp2_pq_top() 114 if (pq->less(pq->q[j], pq->q[minindex])) { in bubble_down() 129 pq->q[0] = pq->q[pq->length - 1]; in nghttp2_pq_pop() 130 pq->q[0]->index = 0; in nghttp2_pq_pop() [all …]
|
/AliOS-Things-master/components/mbedtls/programs/x509/ |
A D | cert_req.c | 166 char *p, *q, *r; in main() local 202 *q++ = '\0'; in main() 205 opt.filename = q; in main() 207 opt.password = q; in main() 209 opt.output_file = q; in main() 212 opt.debug_level = atoi( q ); in main() 218 opt.subject_name = q; in main() 270 while( q != NULL ) in main() 292 q = r; in main() 297 while( q != NULL ) in main() [all …]
|
A D | cert_write.c | 239 char *p, *q, *r; in main() local 301 *q++ = '\0'; in main() 308 opt.issuer_key = q; in main() 312 opt.issuer_pwd = q; in main() 314 opt.issuer_crt = q; in main() 331 opt.not_after = q; in main() 335 opt.serial = q; in main() 422 while( q != NULL ) in main() 447 q = r; in main() 452 while( q != NULL ) in main() [all …]
|
/AliOS-Things-master/components/linkkit/iot_coap/client/ |
A D | Cloud_CoAPExport.c | 38 while (len && *q && tolower(*p) == *q) { in Cloud_CoAPUri_parse() 40 ++q; in Cloud_CoAPUri_parse() 44 if (*q) { in Cloud_CoAPUri_parse() 56 while (len && *q && tolower(*p) == *q) { in Cloud_CoAPUri_parse() 58 ++q; in Cloud_CoAPUri_parse() 73 while (len && *q && tolower(*p) == *q) { in Cloud_CoAPUri_parse() 75 ++q; in Cloud_CoAPUri_parse() 79 if (*q) { in Cloud_CoAPUri_parse() 83 q = p; in Cloud_CoAPUri_parse() 85 ++q; in Cloud_CoAPUri_parse() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/aos/ |
A D | ethernetif.c | 146 struct pbuf *q; in low_level_output() local 151 for (q = p; q != NULL && sg_len < MAX_ETH_DRV_SG; q = q->next) { in low_level_output() 153 sg_list[sg_len++].len = q->len; in low_level_output() 176 struct pbuf *q; in low_level_output_mii() local 177 for (q = p; q != NULL && sg_len < MAX_ETH_DRV_SG; q = q->next) { in low_level_output_mii() 179 sg_list[sg_len++].len = q->len; in low_level_output_mii() 218 struct pbuf *p, *q; in ethernetif_recv() local 235 for (q = p; q != NULL && sg_len < MAX_ETH_DRV_SG; q = q->next) { in ethernetif_recv() 237 sg_list[sg_len++].len = q->len; in ethernetif_recv() 260 struct pbuf *p, *q; in ethernetif_mii_recv() local [all …]
|
/AliOS-Things-master/components/freetype/src/gzip/ |
A D | infutil.c | 29 Bytef *q; in inflate_flush() local 33 q = s->read; in inflate_flush() 36 n = (uInt)((q <= s->write ? s->write : s->end) - q); in inflate_flush() 49 zmemcpy(p, q, n); in inflate_flush() 51 q += n; in inflate_flush() 54 if (q == s->end) in inflate_flush() 57 q = s->window; in inflate_flush() 62 n = (uInt)(s->write - q); in inflate_flush() 75 zmemcpy(p, q, n); in inflate_flush() 77 q += n; in inflate_flush() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ |
A D | pbuf.c | 584 q = p; in pbuf_realloc() 593 q = q->next; in pbuf_realloc() 601 if ((q->type == PBUF_RAM) && (rem_len != q->len) in pbuf_realloc() 610 q = (struct pbuf *)mem_trim(q, (u16_t)((u8_t *)q->payload - (u8_t *)q) + rem_len + tail_space); in pbuf_realloc() 612 q = (struct pbuf *)mem_trim(q, (u16_t)((u8_t *)q->payload - (u8_t *)q) + rem_len); in pbuf_realloc() 618 q->tot_len = q->len; in pbuf_realloc() 1205 q = q->next; in pbuf_skip_const() 1416 if ((q != NULL) && (q->len > q_idx)) { in pbuf_try_get_at() 1438 if ((q != NULL) && (q->len > q_idx)) { in pbuf_put_at() 1467 while ((q != NULL) && (q->len <= start)) { in pbuf_memcmp() [all …]
|
A D | inet_chksum.c | 263 struct pbuf *q; in inet_cksum_pseudo_base() local 267 for (q = p; q != NULL; q = q->next) { in inet_cksum_pseudo_base() 269 (void *)q, (void *)q->next)); in inet_cksum_pseudo_base() 270 acc += LWIP_CHKSUM(q->payload, q->len); in inet_cksum_pseudo_base() 403 struct pbuf *q; in inet_cksum_pseudo_partial_base() local 408 for (q = p; (q != NULL) && (chksum_len > 0); q = q->next) { in inet_cksum_pseudo_partial_base() 410 (void *)q, (void *)q->next)); in inet_cksum_pseudo_partial_base() 411 chklen = q->len; in inet_cksum_pseudo_partial_base() 572 struct pbuf *q; in inet_chksum_pbuf() local 577 for (q = p; q != NULL; q = q->next) { in inet_chksum_pbuf() [all …]
|
A D | raw.c | 305 if (q == NULL) { in raw_sendto() 311 pbuf_chain(q, p); in raw_sendto() 317 q = p; in raw_sendto() 329 if (q != p) { in raw_sendto() 330 pbuf_free(q); in raw_sendto() 342 if (q != p) { in raw_sendto() 343 pbuf_free(q); in raw_sendto() 355 if (q != p) { in raw_sendto() 356 pbuf_free(q); in raw_sendto() 381 if (q != p) { in raw_sendto() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/ |
A D | diag.c | 51 char tmp[20], *q = tmp; in DiagVSprintf() local 117 *q++ = '0'; in DiagVSprintf() 145 *q++ = '-'; in DiagVSprintf() 164 *q++ = '0'; in DiagVSprintf() 178 *q++ = *dp++; in DiagVSprintf() 180 *q++ = *fmt; in DiagVSprintf() 358 *q++ = '0'; in DiagSnPrintf() 380 *q++ = '-'; in DiagSnPrintf() 400 *q++ = '0'; in DiagSnPrintf() 414 *q++ = *dp++; in DiagSnPrintf() [all …]
|
/AliOS-Things-master/components/minilibc/include/ |
A D | mm_queue.h | 48 #define sq_init(q) do { (q)->head = NULL; (q)->tail = NULL; } while (0) argument 49 #define dq_init(q) do { (q)->head = NULL; (q)->tail = NULL; } while (0) argument 55 #define sq_empty(q) ((q)->head == NULL) argument 56 #define dq_empty(q) ((q)->head == NULL) argument 58 #define sq_peek(q) ((q)->head) argument 59 #define dq_peek(q) ((q)->head) argument
|
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ |
A D | slipif.c | 98 struct pbuf *p, *q; member 119 struct pbuf *q; in slipif_output() local 134 for (q = p; q != NULL; q = q->next) { in slipif_output() 229 t = priv->q; in slipif_rxbyte() 400 priv->q = NULL; in slipif_init() 464 struct pbuf *q = p; in slipif_process_rxqueue() local 465 while ((q->len != q->tot_len) && (q->next != NULL)) { in slipif_process_rxqueue() 466 q = q->next; in slipif_process_rxqueue() 469 q->next = NULL; in slipif_process_rxqueue() 501 q = q->next; in slipif_rxbyte_enqueue() [all …]
|
A D | ethernetif.c | 140 struct pbuf *q; 148 for (q = p; q != NULL; q = q->next) { 152 send data from(q->payload, q->len); 188 struct pbuf *p, *q; 210 for (q = p; q != NULL; q = q->next) { 219 read data into(q->payload, q->len);
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/ |
A D | quant_dec.c | 75 int q; in VP8ParseQuant() local 77 q = hdr->quantizer_[i]; in VP8ParseQuant() 79 q += base_q0; in VP8ParseQuant() 86 q = base_q0; in VP8ParseQuant() 91 m->y1_mat_[0] = kDcTable[clip(q + dqy1_dc, 127)]; in VP8ParseQuant() 92 m->y1_mat_[1] = kAcTable[clip(q + 0, 127)]; in VP8ParseQuant() 94 m->y2_mat_[0] = kDcTable[clip(q + dqy2_dc, 127)] * 2; in VP8ParseQuant() 98 m->y2_mat_[1] = (kAcTable[clip(q + dqy2_ac, 127)] * 101581) >> 16; in VP8ParseQuant() 101 m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)]; in VP8ParseQuant() 102 m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)]; in VP8ParseQuant() [all …]
|
/AliOS-Things-master/components/osal_aos/rhino/ |
A D | aos_queue.c | 23 kbuf_queue_t *q; in aos_queue_new() local 32 q = (kbuf_queue_t *)aos_malloc(malloc_len); in aos_queue_new() 33 if (q == NULL) { in aos_queue_new() 40 aos_free(q); in aos_queue_new() 44 *queue = q; in aos_queue_new() 52 kbuf_queue_t *q; in aos_queue_create() local 62 q = (kbuf_queue_t *)aos_malloc(malloc_len); in aos_queue_create() 63 if (q == NULL) { in aos_queue_create() 66 real_buf = (void *)q + sizeof(kbuf_queue_t); in aos_queue_create() 70 aos_free(q); in aos_queue_create() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv4/ |
A D | etharp.c | 172 while (q) { in free_etharp_q() 173 r = q; in free_etharp_q() 174 q = q->next; in free_etharp_q() 183 #define free_etharp_q(q) pbuf_free(q) argument 494 struct etharp_q_entry *q = arp_table[i].q; local 496 arp_table[i].q = q->next; 498 p = q->p; 996 if (q) { 1047 p = q; 1067 p = q; [all …]
|
/AliOS-Things-master/components/freetype/src/psnames/ |
A D | pstables.h | 4097 const unsigned char* q = p + mid * 2; in ft_get_adobe_glyph_index() local 4101 q = ft_adobe_glyph_list + ( ( (int)q[0] << 8 ) | q[1] ); in ft_get_adobe_glyph_index() 4103 c2 = q[0] & 127; in ft_get_adobe_glyph_index() 4106 p = q; in ft_get_adobe_glyph_index() 4149 const unsigned char* q = ft_adobe_glyph_list + offset; in ft_get_adobe_glyph_index() local 4151 if ( c == ( q[0] & 127 ) ) in ft_get_adobe_glyph_index() 4153 p = q; in ft_get_adobe_glyph_index()
|
/AliOS-Things-master/components/mbedtls/programs/ssl/ |
A D | ssl_client2.c | 571 char *p, *q; in main() local 665 *q++ = '\0'; in main() 675 int t = atoi( q ); in main() 719 opt.ca_file = q; in main() 721 opt.ca_path = q; in main() 723 opt.crt_file = q; in main() 725 opt.key_file = q; in main() 727 opt.psk = q; in main() 731 opt.ecjpake_pw = q; in main() 830 opt.curves = q; in main() [all …]
|
/AliOS-Things-master/components/freetype/src/cache/ |
A D | ftcmanag.h | 163 #define FTC_SCALER_HASH( q ) \ argument 164 ( _FTC_FACE_ID_HASH( (q)->face_id ) + \ 165 (q)->width + (q)->height*7 + \ 166 ( (q)->pixel ? 0 : ( (q)->x_res*33 ^ (q)->y_res*61 ) ) )
|
/AliOS-Things-master/components/py_engine/engine/lib/libm/ |
A D | ef_sqrt.c | 46 __int32_t ix,s,q,m,t,i; in sqrtf() local 73 q = s = 0; /* q = sqrt(x) */ in sqrtf() 81 q += r; in sqrtf() 93 q += 2; in sqrtf() 95 q += (q&1); in sqrtf() 98 ix = (q>>1)+0x3f000000L; in sqrtf()
|
/AliOS-Things-master/components/freetype/src/base/ |
A D | ftcalc.c | 269 return ( s < 0 ? -(FT_Long)q : (FT_Long)q ); in FT_DivFix() 317 q = 0; in ft_div64by32() 327 q <<= 1; in ft_div64by32() 333 q |= 1; in ft_div64by32() 338 return q; in ft_div64by32() 587 return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q ); in FT_DivFix() 645 return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q ); 655 q = 0; 670 return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q ); 699 return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q ); [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/platform/ |
A D | stdlib_patch.c | 634 *q++ = '0'; in DiagSnPrintfPatch() 635 *q++ = 'X' | ncase; in DiagSnPrintfPatch() 656 *q++ = '-'; in DiagSnPrintfPatch() 676 *q++ = '0'; in DiagSnPrintfPatch() 690 *q++ = *dp++; in DiagSnPrintfPatch() 692 *q++ = *fmt; in DiagSnPrintfPatch() 815 *q++ = '0'; in VSprintfPatch() 843 *q++ = '-'; in VSprintfPatch() 862 *q++ = '0'; in VSprintfPatch() 876 *q++ = *dp++; in VSprintfPatch() [all …]
|