| /f-stack/freebsd/contrib/libb2/ |
| H A D | blake2s-load-sse2.h | 17 #define LOAD_MSG_0_1(buf) buf = _mm_set_epi32(m6,m4,m2,m0) argument 18 #define LOAD_MSG_0_2(buf) buf = _mm_set_epi32(m7,m5,m3,m1) argument 19 #define LOAD_MSG_0_3(buf) buf = _mm_set_epi32(m14,m12,m10,m8) argument 20 #define LOAD_MSG_0_4(buf) buf = _mm_set_epi32(m15,m13,m11,m9) argument 21 #define LOAD_MSG_1_1(buf) buf = _mm_set_epi32(m13,m9,m4,m14) argument 22 #define LOAD_MSG_1_2(buf) buf = _mm_set_epi32(m6,m15,m8,m10) argument 23 #define LOAD_MSG_1_3(buf) buf = _mm_set_epi32(m5,m11,m0,m1) argument 24 #define LOAD_MSG_1_4(buf) buf = _mm_set_epi32(m3,m7,m2,m12) argument 26 #define LOAD_MSG_2_2(buf) buf = _mm_set_epi32(m13,m2,m0,m8) argument 27 #define LOAD_MSG_2_3(buf) buf = _mm_set_epi32(m9,m7,m3,m10) argument [all …]
|
| H A D | blake2s-load-sse41.h | 17 #define LOAD_MSG_0_1(buf) \ argument 20 #define LOAD_MSG_0_2(buf) \ argument 23 #define LOAD_MSG_0_3(buf) \ argument 26 #define LOAD_MSG_0_4(buf) \ argument 29 #define LOAD_MSG_1_1(buf) \ argument 35 #define LOAD_MSG_1_2(buf) \ argument 41 #define LOAD_MSG_1_3(buf) \ argument 47 #define LOAD_MSG_1_4(buf) \ argument 53 #define LOAD_MSG_2_1(buf) \ argument 59 #define LOAD_MSG_2_2(buf) \ argument [all …]
|
| H A D | blake2s-load-xop.h | 30 #define LOAD_MSG_0_1(buf) \ argument 33 #define LOAD_MSG_0_2(buf) \ argument 36 #define LOAD_MSG_0_3(buf) \ argument 39 #define LOAD_MSG_0_4(buf) \ argument 42 #define LOAD_MSG_1_1(buf) \ argument 46 #define LOAD_MSG_1_2(buf) \ argument 50 #define LOAD_MSG_1_3(buf) \ argument 54 #define LOAD_MSG_1_4(buf) \ argument 58 #define LOAD_MSG_2_1(buf) \ argument 62 #define LOAD_MSG_2_2(buf) \ argument [all …]
|
| /f-stack/dpdk/app/test/ |
| H A D | test_telemetry_json.c | 14 char buf[1024]; in test_basic_array() local 18 used = rte_tel_json_empty_array(buf, sizeof(buf), used); in test_basic_array() 22 used = rte_tel_json_add_array_string(buf, sizeof(buf), used, in test_basic_array() 24 used = rte_tel_json_add_array_int(buf, sizeof(buf), used, 42); in test_basic_array() 29 return strncmp(expected, buf, sizeof(buf)); in test_basic_array() 39 used = rte_tel_json_add_obj_u64(buf, sizeof(buf), used, in test_basic_obj() 41 used = rte_tel_json_add_obj_u64(buf, sizeof(buf), used, in test_basic_obj() 47 return strncmp(expected, buf, sizeof(buf)); in test_basic_obj() 56 char buf[25]; in test_overflow_array() local 68 return strncmp(expected, buf, sizeof(buf)); in test_overflow_array() [all …]
|
| H A D | test_cmdline_cirbuf.c | 28 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_misc() 71 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_misc() 139 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_add_del() 198 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_add_del() 257 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_add_del_reverse() 290 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_add_del_reverse() 325 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_add_boundaries() 355 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_add_boundaries() 390 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_get_del_boundaries() 434 memset(buf, 0, sizeof(buf)); in test_cirbuf_string_get_del_boundaries() [all …]
|
| H A D | test_cmdline_num.c | 341 memset(&buf, 0, sizeof(buf)); in test_parse_num_invalid_param() 385 memset(&buf, 0, sizeof(buf)); in test_parse_num_invalid_data() 392 buf, sizeof(buf)); in test_parse_num_invalid_data() 423 memset(&buf, 0, sizeof(buf)); in test_parse_num_valid() 426 buf, sizeof(buf)); in test_parse_num_valid() 451 memset(&buf, 0, sizeof(buf)); in test_parse_num_valid() 454 buf, sizeof(buf)); in test_parse_num_valid() 504 buf, sizeof(buf)); in test_parse_num_valid() 532 buf, sizeof(buf)); in test_parse_num_valid() 573 memset(&buf, 0, sizeof(buf)); in test_parse_num_valid() [all …]
|
| H A D | test_cmdline_ipaddr.c | 347 memset(buf, 0, sizeof(buf)); in test_parse_ipaddr_valid() 350 buf, sizeof(buf)) == -1) { in test_parse_ipaddr_valid() 367 memset(buf, 0, sizeof(buf)); in test_parse_ipaddr_valid() 374 buf, sizeof(buf)); in test_parse_ipaddr_valid() 417 memset(buf, 0, sizeof(buf)); in test_parse_ipaddr_valid() 424 buf, sizeof(buf)); in test_parse_ipaddr_valid() 459 memset(buf, 0, sizeof(buf)); in test_parse_ipaddr_valid() 466 buf, sizeof(buf)); in test_parse_ipaddr_valid() 509 buf, sizeof(buf)); in test_parse_ipaddr_valid() 551 buf, sizeof(buf)); in test_parse_ipaddr_valid() [all …]
|
| H A D | test_cmdline_string.c | 128 snprintf(buf, sizeof(buf), "buffer"); in test_parse_string_invalid_param() 132 NULL, buf, 0) != -1) { in test_parse_string_invalid_param() 137 NULL, 0, buf, 0) != -1) { in test_parse_string_invalid_param() 195 memset(buf, 0, sizeof(buf)); in test_parse_string_invalid_data() 202 sizeof(buf)) != -1) { in test_parse_string_invalid_data() 228 buf, sizeof(buf)) != -1) { in test_parse_string_invalid_data() 294 memset(buf, 0, sizeof(buf)); in test_parse_string_valid() 300 sizeof(buf)) < 0) { in test_parse_string_valid() 340 memset(buf, 0, sizeof(buf)); in test_parse_string_valid() 346 buf, sizeof(buf)) < 0) { in test_parse_string_valid() [all …]
|
| /f-stack/app/nginx-1.16.1/src/stream/ |
| H A D | ngx_stream_write_filter_module.c | 101 cl->buf->temporary, cl->buf->in_file, in ngx_stream_write_filter() 102 cl->buf->start, cl->buf->pos, in ngx_stream_write_filter() 103 cl->buf->last - cl->buf->pos, in ngx_stream_write_filter() 105 cl->buf->file_last - cl->buf->file_pos); in ngx_stream_write_filter() 145 if (cl->buf->flush || cl->buf->recycled) { in ngx_stream_write_filter() 166 cl->buf = ln->buf; in ngx_stream_write_filter() 173 cl->buf->temporary, cl->buf->in_file, in ngx_stream_write_filter() 174 cl->buf->start, cl->buf->pos, in ngx_stream_write_filter() 175 cl->buf->last - cl->buf->pos, in ngx_stream_write_filter() 177 cl->buf->file_last - cl->buf->file_pos); in ngx_stream_write_filter() [all …]
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | util.c | 762 assert(string2l(buf,strlen(buf),&v) == 0); in test_string2l() 766 assert(string2l(buf,strlen(buf),&v) == 0); in test_string2l() 769 assert(string2l(buf,strlen(buf),&v) == 1); in test_string2l() 773 assert(string2l(buf,strlen(buf),&v) == 1); in test_string2l() 811 sz = ll2string(buf, sizeof buf, v); in test_ll2string() 816 sz = ll2string(buf, sizeof buf, v); in test_ll2string() 821 sz = ll2string(buf, sizeof buf, v); in test_ll2string() 826 sz = ll2string(buf, sizeof buf, v); in test_ll2string() 831 sz = ll2string(buf, sizeof buf, v); in test_ll2string() 836 sz = ll2string(buf, sizeof buf, v); in test_ll2string() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/ |
| H A D | ngx_http_write_filter_module.c | 77 cl->buf->temporary, cl->buf->in_file, in ngx_http_write_filter() 78 cl->buf->start, cl->buf->pos, in ngx_http_write_filter() 79 cl->buf->last - cl->buf->pos, in ngx_http_write_filter() 81 cl->buf->file_last - cl->buf->file_pos); in ngx_http_write_filter() 121 if (cl->buf->flush || cl->buf->recycled) { in ngx_http_write_filter() 142 cl->buf = ln->buf; in ngx_http_write_filter() 149 cl->buf->temporary, cl->buf->in_file, in ngx_http_write_filter() 150 cl->buf->start, cl->buf->pos, in ngx_http_write_filter() 151 cl->buf->last - cl->buf->pos, in ngx_http_write_filter() 153 cl->buf->file_last - cl->buf->file_pos); in ngx_http_write_filter() [all …]
|
| /f-stack/app/nginx-1.16.1/src/http/v2/ |
| H A D | ngx_http_v2_huff_encode.c | 175 (dst)[7] = (u_char) (buf)) 180 (*(uint64_t *) (dst) = (buf)) 186 (*(uint32_t *) (dst) = htonl(buf)) 202 buf = 0; in ngx_http_v2_huff_encode() 215 buf |= code << (sizeof(buf) * 8 - pending); in ngx_http_v2_huff_encode() 223 pending -= sizeof(buf) * 8; in ngx_http_v2_huff_encode() 225 buf |= code >> pending; in ngx_http_v2_huff_encode() 229 hlen += sizeof(buf); in ngx_http_v2_huff_encode() 231 buf = pending ? code << (sizeof(buf) * 8 - pending) : 0; in ngx_http_v2_huff_encode() 238 buf |= (ngx_uint_t) -1 >> pending; in ngx_http_v2_huff_encode() [all …]
|
| /f-stack/app/nginx-1.16.1/src/core/ |
| H A D | ngx_output_chain.c | 178 ctx->buf = cl->buf; in ngx_output_chain() 218 cl->buf = ctx->buf; in ngx_output_chain() 263 if (buf->in_file && buf->file->directio) { in ngx_output_chain_as_is() 271 if (buf->in_file && buf->file_pos >= NGX_SENDFILE_LIMIT) { in ngx_output_chain_as_is() 296 if (ctx->need_in_temp && (buf->memory || buf->mmap)) { in ngx_output_chain_as_is() 350 buf = in->buf; in ngx_output_chain_add_copy() 376 cl->buf = buf; in ngx_output_chain_add_copy() 381 cl->buf = in->buf; in ngx_output_chain_add_copy() 514 ctx->buf = b; in ngx_output_chain_get_buf() 732 in->buf->flush, ngx_buf_size(in->buf)); in ngx_chain_writer() [all …]
|
| H A D | ngx_proxy_protocol.c | 56 p = buf; in ngx_proxy_protocol_read() 57 len = last - buf; in ngx_proxy_protocol_read() 165 "broken header: \"%*s\"", (size_t) (last - buf), buf); in ngx_proxy_protocol_read() 187 buf = ngx_cpymem(buf, "PROXY TCP4 ", sizeof("PROXY TCP4 ") - 1); in ngx_proxy_protocol_write() 192 buf = ngx_cpymem(buf, "PROXY TCP6 ", sizeof("PROXY TCP6 ") - 1); in ngx_proxy_protocol_write() 201 buf += ngx_sock_ntop(c->sockaddr, c->socklen, buf, last - buf, 0); in ngx_proxy_protocol_write() 203 *buf++ = ' '; in ngx_proxy_protocol_write() 205 buf += ngx_sock_ntop(c->local_sockaddr, c->local_socklen, buf, last - buf, in ngx_proxy_protocol_write() 243 if ((size_t) (last - buf) < len) { in ngx_proxy_protocol_v2_read() 248 end = buf + len; in ngx_proxy_protocol_v2_read() [all …]
|
| H A D | ngx_buf.c | 115 cl->buf = b; in ngx_create_chain_of_bufs() 144 cl->buf = in->buf; in ngx_chain_add_copy() 173 cl->buf = ngx_calloc_buf(p); in ngx_chain_get_free_buf() 174 if (cl->buf == NULL) { in ngx_chain_get_free_buf() 216 cl->buf->pos = cl->buf->start; in ngx_chain_update_chains() 217 cl->buf->last = cl->buf->start; in ngx_chain_update_chains() 236 fd = cl->buf->file->fd; in ngx_chain_coalesce_file() 239 size = cl->buf->file_last - cl->buf->file_pos; in ngx_chain_coalesce_file() 292 in->buf->pos = in->buf->last; in ngx_chain_update_sent() 296 in->buf->file_pos = in->buf->file_last; in ngx_chain_update_sent() [all …]
|
| /f-stack/freebsd/sys/ |
| H A D | buf.h | 50 struct buf; 99 struct buf { struct 395 struct buf *insert_point; 396 struct buf *switch_point; 412 bwrite(struct buf *bp) in bwrite() 423 bstrategy(struct buf *bp) in bstrategy() 435 buf_start(struct buf *bp) in buf_start() 518 buf_mapped(struct buf *bp) in buf_mapped() 544 int, struct ucred *, int, void (*)(struct buf *), struct buf **); 549 void bdirty(struct buf *); [all …]
|
| /f-stack/freebsd/contrib/xz-embedded/userspace/ |
| H A D | xz_config.h | 48 #define memzero(buf, size) memset(buf, 0, size) argument 78 return (uint32_t)buf[0] in get_unaligned_le32() 79 | ((uint32_t)buf[1] << 8) in get_unaligned_le32() 80 | ((uint32_t)buf[2] << 16) in get_unaligned_le32() 81 | ((uint32_t)buf[3] << 24); in get_unaligned_le32() 89 | ((uint32_t)buf[1] << 16) in get_unaligned_be32() 90 | ((uint32_t)buf[2] << 8) in get_unaligned_be32() 91 | (uint32_t)buf[3]; in get_unaligned_be32() 98 buf[0] = (uint8_t)val; in put_unaligned_le32() 99 buf[1] = (uint8_t)(val >> 8); in put_unaligned_le32() [all …]
|
| /f-stack/dpdk/lib/librte_telemetry/ |
| H A D | telemetry_json.h | 40 strcpy(buf, tmp); in __json_snprintf() 50 return used + __json_snprintf(buf + used, len - used, "[]"); in rte_tel_json_empty_array() 57 return used + __json_snprintf(buf + used, len - used, "{}"); in rte_tel_json_empty_obj() 74 return __json_snprintf(buf, len, "[\"%s\"]", str); in rte_tel_json_add_array_string() 86 return __json_snprintf(buf, len, "[%d]", val); in rte_tel_json_add_array_int() 88 ret = __json_snprintf(buf + end, len - end, ",%d]", val); in rte_tel_json_add_array_int() 99 return __json_snprintf(buf, len, "[%"PRIu64"]", val); in rte_tel_json_add_array_u64() 115 return __json_snprintf(buf, len, "[%s]", str); in rte_tel_json_add_array_json() 117 ret = __json_snprintf(buf + end, len - end, ",%s]", str); in rte_tel_json_add_array_json() 149 return __json_snprintf(buf, len, "{\"%s\":%d}", name, in rte_tel_json_add_obj_int() [all …]
|
| /f-stack/app/nginx-1.16.1/src/event/ |
| H A D | ngx_event_pipe.c | 345 size = cl->buf->end - cl->buf->last; in ngx_event_pipe_read_upstream() 348 cl->buf->last = cl->buf->end; in ngx_event_pipe_read_upstream() 390 cl->buf->start, cl->buf->pos, in ngx_event_pipe_read_upstream() 391 cl->buf->last - cl->buf->pos, in ngx_event_pipe_read_upstream() 403 cl->buf->start, cl->buf->pos, in ngx_event_pipe_read_upstream() 404 cl->buf->last - cl->buf->pos, in ngx_event_pipe_read_upstream() 416 cl->buf->start, cl->buf->pos, in ngx_event_pipe_read_upstream() 417 cl->buf->last - cl->buf->pos, in ngx_event_pipe_read_upstream() 429 cl->buf->start, cl->buf->pos, in ngx_event_pipe_read_upstream() 787 bsize = cl->buf->last - cl->buf->pos; in ngx_event_pipe_write_chain_to_temp_file() [all …]
|
| /f-stack/app/redis-5.0.5/deps/lua/src/ |
| H A D | fpconv.c | 54 char buf[8]; in fpconv_update_locale() local 56 snprintf(buf, sizeof(buf), "%g", 0.5); in fpconv_update_locale() 60 if (buf[0] != '0' || buf[2] != '5' || buf[3] != 0) { in fpconv_update_locale() 109 char *buf, *endbuf, *dp; in fpconv_strtod() local 128 if (!buf) { in fpconv_strtod() 134 buf = localbuf; in fpconv_strtod() 136 memcpy(buf, nptr, buflen); in fpconv_strtod() 137 buf[buflen] = 0; in fpconv_strtod() 140 dp = strchr(buf, '.'); in fpconv_strtod() 147 free(buf); in fpconv_strtod() [all …]
|
| /f-stack/freebsd/contrib/zlib/ |
| H A D | adler32.c | 16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} argument 17 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); argument 18 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); argument 19 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); argument 20 #define DO16(buf) DO8(buf,0); DO8(buf,8); argument 65 const Bytef *buf; 87 if (buf == Z_NULL) 108 buf += 16; 118 DO16(buf); 119 buf += 16; [all …]
|
| /f-stack/app/nginx-1.16.1/src/os/unix/ |
| H A D | ngx_writev_chain.c | 62 if (cl && cl->buf->in_file) { in ngx_writev_chain() 69 cl->buf->start, in ngx_writev_chain() 70 cl->buf->pos, in ngx_writev_chain() 71 cl->buf->last, in ngx_writev_chain() 72 cl->buf->file, in ngx_writev_chain() 123 if (ngx_buf_special(in->buf)) { in ngx_output_chain_to_iovec() 127 if (in->buf->in_file) { in ngx_output_chain_to_iovec() 139 in->buf->pos, in ngx_output_chain_to_iovec() 150 size = in->buf->last - in->buf->pos; in ngx_output_chain_to_iovec() 156 if (prev == in->buf->pos) { in ngx_output_chain_to_iovec() [all …]
|
| /f-stack/dpdk/drivers/net/ice/base/ |
| H A D | ice_acl.c | 51 return ice_aq_send_cmd(hw, &desc, &tbl->buf, sizeof(tbl->buf), cd); in ice_aq_alloc_acl_tbl() 78 return ice_aq_send_cmd(hw, &desc, buf, sizeof(*buf), cd); in ice_aq_dealloc_acl_tbl() 97 return ice_aq_send_cmd(hw, &desc, buf, sizeof(*buf), cd); in ice_aq_acl_entry() 151 return ice_aq_send_cmd(hw, &desc, buf, sizeof(*buf), cd); in ice_aq_actpair_a_d() 171 buf, cd); in ice_aq_alloc_actpair() 188 buf, cd); in ice_aq_dealloc_actpair() 209 return ice_aq_send_cmd(hw, &desc, buf, sizeof(*buf), cd); in ice_aq_actpair_p_q() 287 return ice_aq_send_cmd(hw, &desc, buf, sizeof(*buf), cd); in ice_acl_prof_aq_send() 457 return ice_aq_send_cmd(hw, &desc, buf, sizeof(*buf), cd); in ice_prog_acl_prof_ranges() 479 return ice_aq_send_cmd(hw, &desc, buf, sizeof(*buf), cd); in ice_query_acl_prof_ranges() [all …]
|
| /f-stack/freebsd/contrib/xz-embedded/linux/lib/xz/ |
| H A D | xz_dec_bcj.c | 74 uint8_t buf[16]; member 108 if ((buf[i] & 0xFE) != 0xE8) in bcj_x86() 254 buf[i + j + byte_pos] in bcj_ia64() 271 if (buf[i + 3] == 0xEB) { in bcj_arm() 272 addr = (uint32_t)buf[i] | ((uint32_t)buf[i + 1] << 8) in bcj_arm() 277 buf[i] = (uint8_t)addr; in bcj_arm() 299 | (uint32_t)buf[i + 2]; in bcj_armthumb() 306 buf[i + 2] = (uint8_t)addr; in bcj_armthumb() 350 buf += *pos; in bcj_apply() 409 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush() [all …]
|
| /f-stack/freebsd/contrib/libsodium/test/default/ |
| H A D | sodium_utils2.c | 41 void * buf; in main() local 59 memset(buf, 0, 50000U); in main() 60 sodium_free(buf); in main() 66 buf = sodium_malloc(size); in main() 67 assert(buf != NULL); in main() 68 memset(buf, i, size); in main() 70 sodium_free(buf); in main() 84 buf = sodium_malloc(size); in main() 85 assert(buf != NULL); in main() 89 sodium_mprotect_readonly(buf); in main() [all …]
|