Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 22 of 22) sorted by relevance

/redis-3.2.3/src/
H A Dmemtest.c146 assert((bytes & 4095) == 0); in memtest_fill_random()
171 assert((bytes & 4095) == 0); in memtest_fill_value()
198 assert((bytes & 4095) == 0); in memtest_compare()
249 memtest_fill_random(m,bytes,interactive); in memtest_test()
284 size_t left = bytes; in memtest_preserving_test()
310 if (bytes >= MEMTEST_DECACHE_SIZE) { in memtest_preserving_test()
316 if (bytes >= MEMTEST_DECACHE_SIZE) { in memtest_preserving_test()
322 if (bytes >= MEMTEST_DECACHE_SIZE) { in memtest_preserving_test()
337 size_t bytes = megabytes*1024*1024; in memtest_alloc_and_test() local
338 unsigned long *m = malloc(bytes); in memtest_alloc_and_test()
[all …]
H A Dhyperloglog.c932 uint8_t *bytes; in hllRawSum() local
938 bytes = (uint8_t*) word; in hllRawSum()
939 if (bytes[0]) E += PE[bytes[0]]; else ez++; in hllRawSum()
940 if (bytes[1]) E += PE[bytes[1]]; else ez++; in hllRawSum()
941 if (bytes[2]) E += PE[bytes[2]]; else ez++; in hllRawSum()
942 if (bytes[3]) E += PE[bytes[3]]; else ez++; in hllRawSum()
943 if (bytes[4]) E += PE[bytes[4]]; else ez++; in hllRawSum()
944 if (bytes[5]) E += PE[bytes[5]]; else ez++; in hllRawSum()
945 if (bytes[6]) E += PE[bytes[6]]; else ez++; in hllRawSum()
946 if (bytes[7]) E += PE[bytes[7]]; else ez++; in hllRawSum()
H A Dintset.c184 uint32_t bytes = intrev32ifbe(is->length)-from; in intsetMoveTail() local
190 bytes *= sizeof(int64_t); in intsetMoveTail()
194 bytes *= sizeof(int32_t); in intsetMoveTail()
198 bytes *= sizeof(int16_t); in intsetMoveTail()
200 memmove(dst,src,bytes); in intsetMoveTail()
H A Dzmalloc.c340 size_t bytes = 0; in zmalloc_get_smap_bytes_by_field() local
350 bytes += strtol(line+flen,NULL,10) * 1024; in zmalloc_get_smap_bytes_by_field()
355 return bytes; in zmalloc_get_smap_bytes_by_field()
H A Dconfig.c1434 int rewriteConfigFormatMemory(char *buf, size_t len, long long bytes) {
1439 if (bytes && (bytes % gb) == 0) {
1440 return snprintf(buf,len,"%lldgb",bytes/gb);
1441 } else if (bytes && (bytes % mb) == 0) {
1442 return snprintf(buf,len,"%lldmb",bytes/mb);
1443 } else if (bytes && (bytes % kb) == 0) {
1444 return snprintf(buf,len,"%lldkb",bytes/kb);
1446 return snprintf(buf,len,"%lld",bytes);
H A Drio.c302 void rioSetAutoSync(rio *r, off_t bytes) { in rioSetAutoSync() argument
304 r->io.file.autosync = bytes; in rioSetAutoSync()
H A Drio.h139 void rioSetAutoSync(rio *r, off_t bytes);
H A Dbitops.c800 long bytes = end-start+1; in bitcountCommand() local
802 addReplyLongLong(c,redisPopcount(p+start,bytes)); in bitcountCommand()
865 long bytes = end-start+1; in bitposCommand() local
866 long pos = redisBitpos(p+start,bytes,bit); in bitposCommand()
875 if (end_given && bit == 0 && pos == bytes*8) { in bitposCommand()
H A Dziplist.c427 unsigned int bytes = ZIPLIST_HEADER_SIZE+1; in ziplistNew() local
428 unsigned char *zl = zmalloc(bytes); in ziplistNew()
429 ZIPLIST_BYTES(zl) = intrev32ifbe(bytes); in ziplistNew()
432 zl[bytes-1] = ZIP_END; in ziplistNew()
H A Dnetworking.c1352 sds ci = catClientInfoString(sdsempty(),c), bytes = sdsempty(); in readQueryFromClient() local
1354 bytes = sdscatrepr(bytes,c->querybuf,64); in readQueryFromClient()
1355 …ING,"Closing client that reached max query buffer length: %s (qbuf initial bytes: %s)", ci, bytes); in readQueryFromClient()
1357 sdsfree(bytes); in readQueryFromClient()
H A Dserver.h1668 int memtest_preserving_test(unsigned long *m, size_t bytes, int passes);
/redis-3.2.3/tests/
H A Dtest_helper.tcl247 set bytes [gets $fd]
248 set payload [read $fd $bytes]
376 set bytes [gets $::test_server_fd]
377 set payload [read $::test_server_fd $bytes]
/redis-3.2.3/deps/jemalloc/include/jemalloc/internal/
H A Djemalloc_internal_defs.h.in160 /* Minimum size class to support is 2^LG_TINY_MIN bytes. */
164 * Minimum allocation alignment is 2^LG_QUANTUM bytes (ignoring tiny size
169 /* One page is 2^LG_PAGE bytes. */
H A Djemalloc_internal.h.in222 * Minimum allocation alignment is 2^LG_QUANTUM bytes (ignoring tiny size
1072 * Copy at most size bytes (not size+extra), since the caller has no
1073 * expectation that the extra bytes will be reliably preserved.
/redis-3.2.3/
H A Dredis.conf972 hll-sparse-max-bytes 3000
H A D00-RELEASENOTES97 instead of just skipping bytes.
662 | Code to access object string bytes repeated 3x refactored into 1 function.
718 the other, neutralizing the benefits of 24 bytes size classes (and
1229 lines more than 4096 bytes.
/redis-3.2.3/tests/unit/
H A Dslowlog.tcl57 …AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA... (1 more bytes)}}
/redis-3.2.3/tests/support/
H A Dserver.tcl21 (![regexp -- {definitely lost: 0 bytes} $buf] &&
/redis-3.2.3/deps/hiredis/
H A Dhiredis.c249 static char *readBytes(redisReader *r, unsigned int bytes) { in readBytes() argument
251 if (r->len-r->pos >= bytes) { in readBytes()
253 r->pos += bytes; in readBytes()
H A DREADME.md336 copy of the buffer pointed to by `buf` for `len` bytes. This data is parsed
/redis-3.2.3/deps/lua/
H A DHISTORY82 + new read form: read(N) for next N bytes.
/redis-3.2.3/deps/jemalloc/
H A DChangeLog12 - Fix xallocx(..., MALLOCX_ZERO) to zero all trailing bytes of large
14 - Fix xallocx(..., MALLOCX_ZERO) to zero trailing bytes of huge allocations
709 to be underreported (though the reported number of objects and bytes were