/reactos/drivers/network/tcpip/lwip/test/unit/arch/ |
H A D | sys_arch.c | 253 LWIP_ASSERT("q->sem == q", q->sem == q); in sys_mbox_post() 258 LWIP_ASSERT("mbox already full", q->used < q->size); in sys_mbox_post() 260 q->q_mem[q->head] = msg; in sys_mbox_post() 262 if (q->head >= (unsigned int)q->size) { in sys_mbox_post() 265 LWIP_ASSERT("mbox is full!", q->head != q->tail); in sys_mbox_post() 273 LWIP_ASSERT("q->sem == q", q->sem == q); in sys_mbox_trypost() 279 if (q->used == q->size) { in sys_mbox_trypost() 298 LWIP_ASSERT("q->sem == q", q->sem == q); in sys_arch_mbox_fetch() 346 LWIP_ASSERT("q->sem == q", q->sem == q); in sys_arch_mbox_tryfetch() 355 *msg = q->q_mem[q->tail]; in sys_arch_mbox_tryfetch() [all …]
|
/reactos/sdk/lib/rtl/ |
H A D | timerqueue.c | 72 struct timer_queue *q = t->q; in queue_remove_timer() local 82 if (q->quit && list_empty(&q->timers)) in queue_remove_timer() 88 struct timer_queue *q = t->q; in timer_cleanup_callback() local 118 struct timer_queue *q = t->q; in queue_add_timer() local 237 if (q->quit && list_empty(&q->timers)) in timer_queue_thread_proc() 289 if (!q) in RtlCreateTimerQueue() 338 if (!q || q->magic != TIMER_QUEUE_MAGIC) in RtlDeleteTimerQueueEx() 441 t->q = q; in RtlCreateTimer() 452 if (q->quit) in RtlCreateTimer() 508 struct timer_queue *q = t->q; in RtlUpdateTimer() local [all …]
|
/reactos/base/services/dhcpcsvc/dhcp/ |
H A D | dispatch.c | 260 for (q = timeouts; q; q = q->next) { in add_timeout() 261 if (q->func == where && q->what == what) { in add_timeout() 268 t = q; in add_timeout() 273 if (!q) { in add_timeout() 311 t->next = q; in add_timeout() 322 for (q = timeouts; q; q = q->next) { in cancel_timeout() 323 if (q->func == where && q->what == what) { in cancel_timeout() 330 t = q; in cancel_timeout() 334 if (q) { in cancel_timeout() 366 q = timeouts; in remove_protocol() [all …]
|
/reactos/sdk/lib/3rdparty/stlport/test/unit/ |
H A D | queue_test.cpp | 36 q.push(42); in pqueue1() 37 q.push(101); in pqueue1() 38 q.push(69); in pqueue1() 41 q.pop(); in pqueue1() 43 q.pop(); in pqueue1() 45 q.pop(); in pqueue1() 52 q.push(42); in queue1() 54 q.push(69); in queue1() 57 q.pop(); in queue1() 59 q.pop(); in queue1() [all …]
|
/reactos/drivers/network/tcpip/lwip/src/core/ |
H A D | pbuf.c | 422 q = p; in pbuf_realloc() 428 q->tot_len = (u16_t)(q->tot_len - shrink); in pbuf_realloc() 430 q = q->next; in pbuf_realloc() 452 q->tot_len = q->len; in pbuf_realloc() 1189 while ((q != NULL) && (q->len <= offset_left)) { in pbuf_skip_const() 1191 q = q->next; in pbuf_skip_const() 1196 return q; in pbuf_skip_const() 1426 if ((q != NULL) && (q->len > q_idx)) { in pbuf_try_get_at() 1448 if ((q != NULL) && (q->len > q_idx)) { in pbuf_put_at() 1477 while ((q != NULL) && (q->len <= start)) { in pbuf_memcmp() [all …]
|
H A D | inet_chksum.c | 262 struct pbuf *q; in inet_cksum_pseudo_base() local 266 for (q = p; q != NULL; q = q->next) { in inet_cksum_pseudo_base() 268 (void *)q, (void *)q->next)); in inet_cksum_pseudo_base() 269 acc += LWIP_CHKSUM(q->payload, q->len); in inet_cksum_pseudo_base() 402 struct pbuf *q; in inet_cksum_pseudo_partial_base() local 407 for (q = p; (q != NULL) && (chksum_len > 0); q = q->next) { in inet_cksum_pseudo_partial_base() 409 (void *)q, (void *)q->next)); in inet_cksum_pseudo_partial_base() 410 chklen = q->len; in inet_cksum_pseudo_partial_base() 571 struct pbuf *q; in inet_chksum_pbuf() local 575 for (q = p; q != NULL; q = q->next) { in inet_chksum_pbuf() [all …]
|
/reactos/sdk/lib/crt/math/ieee754/ |
H A D | j0_y0.c | 355 const double *p = 0,*q = 0; local 357 double *p = 0,*q = 0; 370 s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*q[4])))); 376 s1 = one+z*q[0]; 377 s2 = q[1]+z*q[2]; 378 s3 = q[3]+z*q[4]; 504 double *p = 0,*q = 0; 517 s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5]))))); 523 s1 = one+z*q[0]; 524 s2 = q[1]+z*q[2]; [all …]
|
H A D | j1_y1.c | 355 const double *p = 0,*q = 0; local 357 double *p = 0,*q = 0; 370 s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*q[4])))); 376 s1 = one+z*q[0]; 377 s2 = q[1]+z*q[2]; 378 s3 = q[3]+z*q[4]; 505 double *p = 0,*q = 0; 518 s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5]))))); 524 s1 = one+z*q[0]; 525 s2 = q[1]+z*q[2]; [all …]
|
/reactos/dll/win32/wbemprox/ |
H A D | wbemlocator.c | 110 p = q = resource; in parse_resource() 117 q = p + 1; in parse_resource() 118 while (*q && *q != '\\' && *q != '/') q++; in parse_resource() 120 len = q - p; in parse_resource() 128 q++; in parse_resource() 131 p = q; in parse_resource() 132 while (*q && *q != '\\' && *q != '/') q++; in parse_resource() 133 len = q - p; in parse_resource() 135 if (!*q) in parse_resource() 140 q++; in parse_resource() [all …]
|
/reactos/sdk/lib/3rdparty/freetype/src/gzip/ |
H 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 …]
|
/reactos/drivers/network/tcpip/lwip/src/netif/ |
H 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() 398 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() 502 q = q->next; in slipif_rxbyte_enqueue() [all …]
|
H A D | lowpan6.c | 774 struct pbuf *q, *last; in lowpan6_input() local 776 for (q = lrh->frags, last = NULL; q != NULL; last = q, q = q->next) { in lowpan6_input() 805 p->next = q; in lowpan6_input() 811 struct pbuf *q; in lowpan6_input() local 812 for (q = lrh->frags; q != NULL; q = q->next) { in lowpan6_input() 818 offset += q->len - 1; in lowpan6_input() 823 for (q = lrh->frags; q != NULL; q = q->next) { in lowpan6_input() 825 pbuf_remove_header(q, 1); in lowpan6_input() 827 datagram_left -= q->len; in lowpan6_input() 830 q = lrh->reass; in lowpan6_input() [all …]
|
/reactos/drivers/network/tcpip/lwip/src/core/ipv4/ |
H A D | etharp.c | 152 while (q) { in free_etharp_q() 153 r = q; in free_etharp_q() 154 q = q->next; in free_etharp_q() 163 #define free_etharp_q(q) pbuf_free(q) argument 474 struct etharp_q_entry *q = arp_table[i].q; local 476 arp_table[i].q = q->next; 478 p = q->p; 956 if (q) { 1016 p = q; 1030 p = q; [all …]
|
/reactos/sdk/lib/ucrt/mbstring/ |
H A D | mbscspn.cpp | 72 unsigned char *p, *q; in _mbscspn_l() local 92 for (q = (unsigned char *)string; *q ; q++) { in _mbscspn_l() 98 if (((*p == *q) && (p[1] == q[1])) || p[1] == '\0') in _mbscspn_l() 103 if (*p == *q) in _mbscspn_l() 110 if ( _ismbblead_l(*q, _loc_update.GetLocaleT()) ) in _mbscspn_l() 111 if (*++q == '\0') in _mbscspn_l() 116 return((size_t) (q - string)); /* index */ in _mbscspn_l() 118 return((*q) ? q : nullptr); /* pointer */ in _mbscspn_l()
|
H A D | mbsspn.cpp | 61 unsigned char *p, *q; in _mbsspn_l() local 85 for (q = (unsigned char *)string; *q; q++) { in _mbsspn_l() 90 if (((*p == *q) && (p[1] == q[1])) || p[1] == '\0') in _mbsspn_l() 95 if (*p == *q) in _mbsspn_l() 102 if ( _ismbblead_l(*q, _loc_update.GetLocaleT()) ) in _mbsspn_l() 103 if (*++q == '\0') in _mbsspn_l() 108 return((size_t) (q - string)); /* index */ in _mbsspn_l() 110 return((*q) ? q : nullptr); /* pointer */ in _mbsspn_l()
|
/reactos/dll/win32/sxs/ |
H A D | name.c | 230 WCHAR *p, *q; in parse_version() local 238 if (q) *q = 0; in parse_version() 241 p = q + 1; in parse_version() 321 while (*q && *q != ',') q++; in parse_displayname() 322 len = q - p; in parse_displayname() 330 p = ++q; in parse_displayname() 331 while (*q && *q != '=') q++; in parse_displayname() 333 len = q - p; in parse_displayname() 336 p = ++q; in parse_displayname() 342 p = ++q; in parse_displayname() [all …]
|
/reactos/base/shell/cmd/ |
H A D | misc.c | 200 LPTSTR q; in add_entry() local 204 if (!q) in add_entry() 217 cmd_free (q); in add_entry() 222 (*arg)[*ac] = q; in add_entry() 300 LPTSTR q; in split() local 354 if (!q) in split() 399 LPTSTR q; in splitspace() local 434 if (!q) in splitspace() 462 LPTSTR *q; in freep() local 467 q = p; in freep() [all …]
|
/reactos/dll/win32/wmiutils/ |
H A D | path.c | 379 while (*q && *q != '=') in parse_key() 393 while (*q && *q != ',') q++; in parse_key() 416 while (*q && *q != '\\' && *q != '/') q++; in parse_text() 424 p = q; in parse_text() 427 if (*q != '\\' && *q != '/' && *q != ':') in parse_text() 432 while (*q && *q != ':') in parse_text() 445 if (*q && *q != '\\' && *q != '/' && *q != ':') in parse_text() 457 while (*q && *q != ':') in parse_text() 459 if (*q == '\\' || *q == '/') in parse_text() 473 if (*q == ':') q++; in parse_text() [all …]
|
/reactos/dll/3rdparty/libxslt/ |
H A D | xsltlocale.c | 97 *q++ = TOLOWER(*p++); in xsltNewLocale() 107 *q++ = '_'; in xsltNewLocale() 142 *q++ = '_'; in xsltNewLocale() 143 *q++ = region[0]; in xsltNewLocale() 144 *q++ = region[1]; in xsltNewLocale() 169 *q++ = '-'; in xsltNewLocale() 177 *q = '\0'; in xsltNewLocale() 488 q += k; in xsltIterateSupportedLocales() 489 *q++ = '-'; in xsltIterateSupportedLocales() 491 q += l; in xsltIterateSupportedLocales() [all …]
|
/reactos/dll/win32/wldap32/ |
H A D | wldap32.h | 148 *q = NULL; in strarrayAtoW() 168 *q = NULL; in strarrayWtoA() 188 *q = NULL; in strarrayWtoU() 208 *q = NULL; in strarrayUtoW() 283 *q = NULL; in bvarraydup() 376 *q = NULL; in modarrayAtoW() 396 *q = NULL; in modarrayWtoU() 591 *q = NULL; in controlarrayAtoW() 611 *q = NULL; in controlarrayWtoA() 631 *q = NULL; in controlarrayWtoU() [all …]
|
/reactos/dll/opengl/glu32/src/libnurbs/internals/ |
H A D | trimline.cc | 142 TrimVertex *q; in getPrevPts() local 143 for( q=jarcl.getprevpt(); q->param[1] >= vval; q=jarcl.getprevpt() ) { in getPrevPts() 144 append( q ); in getPrevPts() 148 if( interpvert( q, last(), binterp, vval ) ) { in getPrevPts() 149 binterp->nuid = q->nuid; in getPrevPts() 150 backend.triangle( last(), binterp, q ); in getPrevPts() 186 TrimVertex *q = jarcl.getprevpt(); in getPrevPts() local 187 for( append( q ); q != lastpt1; append( q ) ) { in getPrevPts() 188 assert( q != lastpt2 ); in getPrevPts() 189 q = jarcl.getprevpt(); in getPrevPts()
|
H A D | quilt.cc | 63 for( Quiltspec *q=qspec; q != eqspec; q++ ) { in deleteMe() local 65 if( q->breakpoints) delete[] q->breakpoints; in deleteMe() 66 q->breakpoints = 0; in deleteMe() 68 if( q->breakpoints) { in deleteMe() 69 delete[] q->breakpoints; in deleteMe() 70 q->breakpoints = 0; in deleteMe() 236 for( Quilt *q = next; q; q = q->next ) { in findRates() local 237 q->findSampleRates( slist, tlist ); in findRates() 238 if( q->qspec[0].step_size < rate[0] ) in findRates() 239 rate[0] = q->qspec[0].step_size; in findRates() [all …]
|
/reactos/modules/rostests/winetests/d3drm/ |
H A D | vector.c | 168 D3DRMQUATERNION q; in MatrixTest() local 175 q.s=1.0f; U1(q.v).x=2.0f; U2(q.v).y=3.0f; U3(q.v).z=4.0f; in MatrixTest() 177 D3DRMMatrixFromQuaternion(mat,&q); in MatrixTest() 191 q.s=0.5f; U1(q.v).x=0.5f; U2(q.v).y=0.5f; U3(q.v).z=0.5f; in QuaternionTest() 192 expect_quat(q,r); in QuaternionTest() 202 q.s = -0.55f; U1(q.v).x=3.24f; U2(q.v).y=4.24f; U3(q.v).z=36.98f; in QuaternionTest() 204 expect_quat(q,r); in QuaternionTest() 209 q.s=29.83f; U1(q.v).x=-0.48f; U2(q.v).y=-0.10f; U3(q.v).z=36.98f; in QuaternionTest() 211 expect_quat(q,r); in QuaternionTest() 216 q.s = 0.243943f; U1(q.v).x = 0.351172f; U2(q.v).y = 0.458401f; U3(q.v).z = 0.565629f; in QuaternionTest() [all …]
|
/reactos/sdk/lib/3rdparty/freetype/src/psnames/ |
H A D | pstables.h | 4164 const unsigned char* q = p + mid * 2; in ft_get_adobe_glyph_index() local 4168 q = ft_adobe_glyph_list + ( ( (int)q[0] << 8 ) | q[1] ); in ft_get_adobe_glyph_index() 4170 c2 = q[0] & 127; in ft_get_adobe_glyph_index() 4173 p = q; in ft_get_adobe_glyph_index() 4216 const unsigned char* q = ft_adobe_glyph_list + offset; in ft_get_adobe_glyph_index() local 4218 if ( c == ( q[0] & 127 ) ) in ft_get_adobe_glyph_index() 4220 p = q; in ft_get_adobe_glyph_index()
|
/reactos/dll/win32/rsaenh/ |
H A D | rsa.c | 89 mp_int p, q, tmp1, tmp2, tmp3; in rsa_make_key() local 100 if ((err = mp_init_multi(&p, &q, &tmp1, &tmp2, &tmp3, NULL)) != MP_OKAY) { in rsa_make_key() 116 if ((err = rand_prime(&q, size*4)) != CRYPT_OK) { goto done; } in rsa_make_key() 117 if ((err = mp_sub_d(&q, 1, &tmp1)) != MP_OKAY) { goto error; } /* tmp1 = q-1 */ in rsa_make_key() 128 &key->qP, &key->p, &key->q, NULL)) != MP_OKAY) { in rsa_make_key() 145 if ((err = mp_copy(&q, &key->q)) != MP_OKAY) { goto error2; } in rsa_make_key() 155 if ((err = mp_shrink(&key->q)) != MP_OKAY) { goto error2; } in rsa_make_key() 165 &key->qP, &key->p, &key->q, NULL); in rsa_make_key() 169 mp_clear_multi(&tmp3, &tmp2, &tmp1, &p, &q, NULL); in rsa_make_key() 176 &key->qP, &key->p, &key->q, NULL); in rsa_free() [all …]
|