/external/autotest/client/site_tests/platform_CompressedSwap/src/ |
D | hog.c | 14 #define CHUNK_SIZE MEGA /* one-megabyte chunks */ macro 16 const int n_touches = CHUNK_SIZE >> 12; /* average 1 per page */ 38 char *fake_data = malloc(CHUNK_SIZE); in main() 61 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); in main() 63 memset(fake_data + CHUNK_SIZE / compression_factor, 1, in main() 64 CHUNK_SIZE - (CHUNK_SIZE / compression_factor)); in main() 68 p = malloc(CHUNK_SIZE); in main() 76 memcpy(p, fake_data, CHUNK_SIZE); in main()
|
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/ |
D | hog.c | 13 #define CHUNK_SIZE (1 << 20) macro 64 size_t new_buf_size = buf_size + balloon_size * CHUNK_SIZE; in BalloonMemory() 69 char *new_chunk = global_buf + buf_size + chunk * CHUNK_SIZE; in BalloonMemory() 70 memcpy(new_chunk, fake_data, CHUNK_SIZE); in BalloonMemory() 146 fake_data = malloc(CHUNK_SIZE); in main() 147 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); in main() 149 memset(fake_data + CHUNK_SIZE / compression_factor, 1, in main() 150 CHUNK_SIZE - (CHUNK_SIZE / compression_factor)); in main()
|
/external/u-boot/drivers/spi/ |
D | atcspi200_spi.c | 19 #define CHUNK_SIZE 1 macro 242 num_blks = DIV_ROUND_UP(tran_len , CHUNK_SIZE); in __atcspi200_spi_xfer() 243 num_bytes = (tran_len) % CHUNK_SIZE; in __atcspi200_spi_xfer() 245 num_bytes = CHUNK_SIZE; in __atcspi200_spi_xfer() 252 num_blks -= CHUNK_SIZE; in __atcspi200_spi_xfer() 253 dout += CHUNK_SIZE; in __atcspi200_spi_xfer() 258 if (rf_cnt >= CHUNK_SIZE) in __atcspi200_spi_xfer() 259 rx_bytes = CHUNK_SIZE; in __atcspi200_spi_xfer() 266 num_blks -= CHUNK_SIZE; in __atcspi200_spi_xfer()
|
/external/skia/modules/canvaskit/htmlcanvas/ |
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;
|
/external/skqp/experimental/canvaskit/htmlcanvas/ |
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;
|
/external/brotli/java/org/brotli/wrapper/enc/ |
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()
|
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()
|
/external/guava/guava/src/com/google/common/hash/ |
D | Murmur3_128HashFunction.java | 79 private static final int CHUNK_SIZE = 16; field in Murmur3_128HashFunction.Murmur3_128Hasher 87 super(CHUNK_SIZE); in Murmur3_128Hasher() 97 length += CHUNK_SIZE; in process() 172 .wrap(new byte[CHUNK_SIZE]) in makeHash()
|
D | SipHashFunction.java | 95 private static final int CHUNK_SIZE = 8; field in SipHashFunction.SipHasher 119 super(CHUNK_SIZE); in SipHasher() 129 b += CHUNK_SIZE; in process()
|
D | Murmur3_32HashFunction.java | 151 private static final int CHUNK_SIZE = 4; field in Murmur3_32HashFunction.Murmur3_32Hasher 156 super(CHUNK_SIZE); in Murmur3_32Hasher() 164 length += CHUNK_SIZE; in process()
|
/external/ltp/testcases/kernel/controllers/memctl/ |
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 \
|
/external/google-fruit/include/fruit/impl/data_structures/ |
D | memory_pool.defn.h | 75 if (required_space > CHUNK_SIZE) { in allocate() 78 p = operator new(CHUNK_SIZE); in allocate() 80 capacity = CHUNK_SIZE - required_space; in allocate()
|
D | memory_pool.h | 34 constexpr static const std::size_t CHUNK_SIZE = 4 * 1024 - 64;
|
/external/brotli/python/tests/ |
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)
|
D | decompressor_test.py | 19 CHUNK_SIZE = 1 variable in TestDecompressor 37 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
D | Base64.java | 51 static final int CHUNK_SIZE = 76; field in Base64 259 … (CHUNK_SEPARATOR.length == 0 ? 0 : (int) Math.ceil((float) encodedDataLength / CHUNK_SIZE)); in encodeBase64() 270 int nextSeparatorIndex = CHUNK_SIZE; in encodeBase64() 316 (CHUNK_SIZE * (chunksSoFar + 1)) + in encodeBase64()
|
/external/brotli/research/ |
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()
|
/external/pcre/dist2/src/sljit/ |
D | sljitExecAllocator.c | 69 #define CHUNK_SIZE 0x10000 macro 132 #define CHUNK_MASK (~(CHUNK_SIZE - 1)) 219 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
|
D | sljitProtExecAllocator.c | 69 #define CHUNK_SIZE 0x10000 macro 215 #define CHUNK_MASK (~(CHUNK_SIZE - 1)) 307 chunk_size = (chunk_size + size + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
|
/external/boringssl/src/util/bot/ |
D | update_clang.py | 46 CHUNK_SIZE = 4096 60 chunk = response.read(CHUNK_SIZE)
|
/external/sl4a/Common/src/org/apache/commons/codec/binary/ |
D | Base64Codec.java | 67 static final int CHUNK_SIZE = 76; field in Base64Codec 243 this(CHUNK_SIZE, CHUNK_SEPARATOR, urlSafe); in Base64Codec() 808 long len = getEncodeLength(binaryData, CHUNK_SIZE, CHUNK_SEPARATOR); in encodeBase64()
|
/external/autotest/client/site_tests/hardware_TrimIntegrity/ |
D | hardware_TrimIntegrity.py | 37 CHUNK_SIZE = 192 * 1024 variable in hardware_TrimIntegrity 100 chunk_size=CHUNK_SIZE, trim_ratio=TRIM_RATIO):
|
/external/icu/icu4c/source/common/ |
D | ucnv.cpp | 45 #define CHUNK_SIZE 1024 macro 2045 UChar pivotBuffer[CHUNK_SIZE]; in ucnv_convertEx() 2098 pivotLimit=pivotBuffer+CHUNK_SIZE; in ucnv_convertEx() 2401 UChar pivotBuffer[CHUNK_SIZE]; in ucnv_internalConvert() 2431 pivotBuffer, &pivot, &pivot2, pivotBuffer+CHUNK_SIZE, in ucnv_internalConvert() 2445 char targetBuffer[CHUNK_SIZE]; in ucnv_internalConvert() 2447 targetLimit=targetBuffer+CHUNK_SIZE; in ucnv_internalConvert() 2454 pivotBuffer, &pivot, &pivot2, pivotBuffer+CHUNK_SIZE, in ucnv_internalConvert()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccapitst.c | 1926 #define CHUNK_SIZE 1024 macro 1959 char char_in[CHUNK_SIZE+32]; in bug1() 1960 char char_out[CHUNK_SIZE*2]; in bug1() 1980 memcpy(char_in + (CHUNK_SIZE - i), test_seq, test_seq_len); in bug1() 2079 char char_in[CHUNK_SIZE*4]; in bug3() 2143 UChar pivotBuffer[CHUNK_SIZE]; in convertExStreaming() 2147 char targetBuffer[CHUNK_SIZE]; in convertExStreaming() 2158 if(chunkSize>CHUNK_SIZE) { in convertExStreaming() 2159 chunkSize=CHUNK_SIZE; in convertExStreaming()
|
/external/webp/src/dec/ |
D | idec_dec.c | 25 #define CHUNK_SIZE 4096 macro 183 const uint64_t extra_size = (new_size + CHUNK_SIZE - 1) & ~(CHUNK_SIZE - 1); in AppendToMemBuffer()
|