/third_party/libuv/test/ |
H A D | test-tcp-writealot.c | 34 #define CHUNK_SIZE 10024 /* 10 kb */ macro 36 #define TOTAL_BYTES (WRITES * CHUNKS_PER_WRITE * CHUNK_SIZE) 108 bytes_sent_done += CHUNKS_PER_WRITE * CHUNK_SIZE; in write_cb() 129 send_bufs[j] = uv_buf_init(send_buffer + bytes_sent, CHUNK_SIZE); in connect_cb() 130 bytes_sent += CHUNK_SIZE; in connect_cb()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
H A D | writev03.c | 30 #define CHUNK_SIZE 256 macro 31 #define BUF_SIZE (2 * CHUNK_SIZE) 70 iov[1].iov_len = CHUNK_SIZE; in thread_run() 71 iov[3].iov_base = map_ptr + CHUNK_SIZE; in thread_run() 72 iov[3].iov_len = CHUNK_SIZE; in thread_run()
|
/third_party/skia/modules/canvaskit/htmlcanvas/ |
H A D | util.js | 22 var CHUNK_SIZE = 0x8000; //arbitrary number 28 slice = bytes.slice(index, Math.min(index + CHUNK_SIZE, length)); 30 index += CHUNK_SIZE;
|
/third_party/musl/src/malloc/oldmalloc/ |
H A D | malloc.c | 120 for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c)) 122 c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)), 291 size_t n1 = CHUNK_SIZE(self); in trim() 355 insert_node(CHUNK_TO_MEM(c), CHUNK_SIZE(c)); in malloc() 365 if (c != BIN_TO_CHUNK(i) && CHUNK_SIZE(c)-n <= DONTCARE) { in malloc() 394 insert_node(CHUNK_TO_MEM(c), CHUNK_SIZE(c)); in malloc() 417 n1 = n0 = CHUNK_SIZE(self); in realloc() 484 size_t nsize = next->csize & C_INUSE ? 0 : CHUNK_SIZE(next); in realloc() 501 insert_node(CHUNK_TO_MEM(self), CHUNK_SIZE(sel in realloc() [all...] |
H A D | malloc_impl.h | 91 #define CHUNK_SIZE(c) ((c)->csize & -2) macro 94 #define NEXT_CHUNK(c) ((struct chunk *)((char *)(c) + CHUNK_SIZE(c)))
|
H A D | malloc_usable_size.c | 8 return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0; in malloc_usable_size()
|
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/ |
H A D | malloc.c | 118 for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c)) 120 c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)), 279 size_t n1 = CHUNK_SIZE(self); in trim() 332 insert_node(CHUNK_TO_MEM(c), CHUNK_SIZE(c)); in malloc() 341 if (c != BIN_TO_CHUNK(i) && CHUNK_SIZE(c)-n <= DONTCARE) { in malloc() 369 insert_node(CHUNK_TO_MEM(c), CHUNK_SIZE(c)); in malloc() 391 n1 = n0 = CHUNK_SIZE(self); in realloc() 448 size_t nsize = next->csize & C_INUSE ? 0 : CHUNK_SIZE(next); in realloc() 464 insert_node(CHUNK_TO_MEM(self), CHUNK_SIZE(sel in realloc() [all...] |
H A D | malloc_impl.h | 75 #define CHUNK_SIZE(c) ((c)->csize & -2) macro 78 #define NEXT_CHUNK(c) ((struct chunk *)((char *)(c) + CHUNK_SIZE(c)))
|
/third_party/lz4/examples/ |
H A D | fileCompress.c | 17 #define CHUNK_SIZE (16*1024) macro 41 void* const buf = malloc(CHUNK_SIZE); in compress_file() 58 len = fread(buf, 1, CHUNK_SIZE, f_in); in compress_file() 93 void* const buf= malloc(CHUNK_SIZE); in decompress_file() 106 ret = LZ4F_read(lz4fRead, buf, CHUNK_SIZE); in decompress_file()
|
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/ |
H A D | BrotliOutputStreamTest.java | 30 private static final int CHUNK_SIZE = 256; field in BrotliOutputStreamTest 81 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { in run() 94 for (int offset = 0; offset < original.length; offset += CHUNK_SIZE) { in run() 95 encoder.write(original, offset, Math.min(CHUNK_SIZE, original.length - offset)); in run()
|
H A D | BrotliEncoderChannelTest.java | 32 private static final int CHUNK_SIZE = 256; field in BrotliEncoderChannelTest 82 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { in run() 97 int limit = Math.min(CHUNK_SIZE, src.remaining()); in run()
|
/third_party/ffmpeg/libavfilter/cuda/ |
H A D | load_helper.c | 27 #define CHUNK_SIZE 1024 * 64 macro 50 buf_size = CHUNK_SIZE * 4; in ff_cuda_load_module() 73 buf_size += CHUNK_SIZE; in ff_cuda_load_module()
|
/third_party/ltp/testcases/kernel/controllers/memctl/ |
H A D | run_memctl_test.sh | 100 CHUNK_SIZE=6291456; # malloc n chunks of size m(6M) 104 MEM_TASK=`expr $CHUNK_SIZE \* $NUM_CHUNKS`; # memory allocated by a task 135 TEST_NUM=$TEST_NUM MYGROUP=$MYGROUP SCRIPT_PID=$SCRIPT_PID CHUNK_SIZE=$CHUNK_SIZE \
|
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/ |
H A D | malloc.c | 116 for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c)) 118 c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)), 272 size_t n1 = CHUNK_SIZE(self); in trim() 316 if (c != BIN_TO_CHUNK(i) && CHUNK_SIZE(c)-n <= DONTCARE) { in malloc() 363 n1 = n0 = CHUNK_SIZE(self); in realloc() 407 size_t nsize = next->csize & C_INUSE ? 0 : CHUNK_SIZE(next); in realloc() 443 size_t osize = CHUNK_SIZE(self), size = osize; in __bin_chunk() 448 size_t nsize = next->csize & C_INUSE ? 0 : CHUNK_SIZE(next); in __bin_chunk() 501 size_t len = CHUNK_SIZE(sel in unmap_chunk() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | ty.c | 46 #define CHUNK_SIZE (128 * 1024) macro 98 uint8_t chunk[CHUNK_SIZE]; 105 for (i = 0; i + 12 < p->buf_size; i += CHUNK_SIZE) { in ty_probe() 108 AV_RB32(p->buf + i + 8) == CHUNK_SIZE) { in ty_probe() 246 if (data_offset + hdrs[i].rec_size > CHUNK_SIZE) in analyze_chunk() 290 avio_read(pb, ty->chunk, CHUNK_SIZE); in ty_read_header() 347 read_size = avio_read(pb, ty->chunk, CHUNK_SIZE); in get_chunk() 376 if (num_recs * 16 >= CHUNK_SIZE - 4) in get_chunk() 677 if (ty->cur_chunk_pos + rec->rec_size > CHUNK_SIZE) in ty_read_packet()
|
H A D | act.c | 28 #define CHUNK_SIZE 512 macro 107 ctx->bytes_left_in_chunk=CHUNK_SIZE; in read_header() 193 ctx->bytes_left_in_chunk=CHUNK_SIZE; in read_packet()
|
/third_party/skia/third_party/externals/brotli/python/tests/ |
H A D | compressor_test.py | 18 CHUNK_SIZE = 2048 variable in _TestCompressor 47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE) 58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
H A D | decompressor_test.py | 19 CHUNK_SIZE = 1 variable in TestDecompressor 37 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
/third_party/musl/src/malloc/ |
H A D | memalign.c | 63 insert_node(CHUNK_TO_MEM(n), CHUNK_SIZE(n)); in __memalign() 82 insert_node(CHUNK_TO_MEM(n), CHUNK_SIZE(n)); in __memalign()
|
/third_party/musl/porting/liteos_a/user_debug/src/malloc/ |
H A D | memalign.c | 62 insert_node(CHUNK_TO_MEM(n), CHUNK_SIZE(n)); in __memalign() 81 insert_node(CHUNK_TO_MEM(n), CHUNK_SIZE(n)); in __memalign()
|
H A D | memory_check.c | 402 checksum = CHUNK_SIZE(self) ^ CHUNK_PSIZE(self) ^ NODE_MAGIC; in is_invalid() 413 cur->checksum = CHUNK_SIZE(cur) ^ CHUNK_PSIZE(cur) ^ NODE_MAGIC; in calculate_checksum() 417 next->checksum = CHUNK_SIZE(next) ^ CHUNK_PSIZE(next) ^ NODE_MAGIC; in calculate_checksum() 447 } while (CHUNK_SIZE(next)); in check_heap_integrity() 464 if ((CHUNK_SIZE(next)) && is_invalid(next)) { in check_chunk_integrity() 796 memset(CHUNK_TO_MEM(self), FREE_MAGIC, CHUNK_SIZE(self) - OVERHEAD); in insert_free_tail() 798 g_recycle_size += CHUNK_SIZE(self); in insert_free_tail() 814 g_recycle_size -= CHUNK_SIZE(cur); in get_free_head()
|
/third_party/musl/src/malloc/liteos_a/user_debug/ |
H A D | memory_check.c | 417 checksum = CHUNK_SIZE(self) ^ CHUNK_PSIZE(self) ^ NODE_MAGIC; in is_invalid() 428 cur->checksum = CHUNK_SIZE(cur) ^ CHUNK_PSIZE(cur) ^ NODE_MAGIC; in calculate_checksum() 432 next->checksum = CHUNK_SIZE(next) ^ CHUNK_PSIZE(next) ^ NODE_MAGIC; in calculate_checksum() 462 } while (CHUNK_SIZE(next)); in check_heap_integrity() 479 if ((CHUNK_SIZE(next)) && is_invalid(next)) { in check_chunk_integrity() 811 memset(CHUNK_TO_MEM(self), FREE_MAGIC, CHUNK_SIZE(self) - OVERHEAD); in insert_free_tail() 813 g_recycle_size += CHUNK_SIZE(self); in insert_free_tail() 829 g_recycle_size -= CHUNK_SIZE(cur); in get_free_head()
|
/third_party/skia/third_party/externals/brotli/research/ |
H A D | deorummolae.cc | 10 #define CHUNK_SIZE 64 macro 17 #define CHUNK_MASK (CHUNK_SIZE - 1) 86 file_map->insert(file_map->end(), file.size() / CHUNK_SIZE, i); in buildFullText() 128 TextIdx f = file_map->at(pos / CHUNK_SIZE); in poisonData() 248 size_t f = file_map[sa[i] / CHUNK_SIZE]; in DM_generate()
|
/third_party/pcre2/pcre2/src/sljit/ |
H A D | sljitExecAllocator.c | 69 #define CHUNK_SIZE (sljit_uw)0x10000u macro 74 * the size is always divisible by CHUNK_SIZE 219 #define CHUNK_MASK (~(CHUNK_SIZE - 1)) 307 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
|
H A D | sljitProtExecAllocator.c | 69 #define CHUNK_SIZE (sljit_uw)0x10000 macro 78 * the size is always divisible by CHUNK_SIZE 264 #define CHUNK_MASK (~(CHUNK_SIZE - 1)) 356 chunk_size = (chunk_size + size + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
|