Home
last modified time | relevance | path

Searched refs:CHUNK_SIZE (Results 1 – 25 of 30) sorted by relevance

12

/external/autotest/client/site_tests/platform_CompressedSwap/src/
Dhog.c14 #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/
Dhog.c13 #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/
Datcspi200_spi.c19 #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/
Dutil.js22 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/
Dutil.js22 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/
DBrotliOutputStreamTest.java30 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()
DBrotliEncoderChannelTest.java32 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/ltp/testcases/kernel/controllers/memctl/
Drun_memctl_test.sh100 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/guava/guava/src/com/google/common/hash/
DMurmur3_128HashFunction.java79 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()
DSipHashFunction.java95 private static final int CHUNK_SIZE = 8; field in SipHashFunction.SipHasher
119 super(CHUNK_SIZE); in SipHasher()
129 b += CHUNK_SIZE; in process()
DMurmur3_32HashFunction.java151 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/google-fruit/include/fruit/impl/data_structures/
Dmemory_pool.defn.h75 if (required_space > CHUNK_SIZE) { in allocate()
78 p = operator new(CHUNK_SIZE); in allocate()
80 capacity = CHUNK_SIZE - required_space; in allocate()
Dmemory_pool.h34 constexpr static const std::size_t CHUNK_SIZE = 4 * 1024 - 64;
/external/brotli/python/tests/
Dcompressor_test.py18 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)
Ddecompressor_test.py19 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/
DBase64.java51 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/
Ddeorummolae.cc10 #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/
DsljitExecAllocator.c69 #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()
DsljitProtExecAllocator.c69 #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/
Dupdate_clang.py46 CHUNK_SIZE = 4096
60 chunk = response.read(CHUNK_SIZE)
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java67 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/
Dhardware_TrimIntegrity.py37 CHUNK_SIZE = 192 * 1024 variable in hardware_TrimIntegrity
100 chunk_size=CHUNK_SIZE, trim_ratio=TRIM_RATIO):
/external/icu/icu4c/source/common/
Ducnv.cpp45 #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/
Dccapitst.c1926 #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/
Didec_dec.c25 #define CHUNK_SIZE 4096 macro
183 const uint64_t extra_size = (new_size + CHUNK_SIZE - 1) & ~(CHUNK_SIZE - 1); in AppendToMemBuffer()

12