Home
last modified time | relevance | path

Searched refs:copylen (Results 1 – 11 of 11) sorted by relevance

/external/brotli/c/enc/
Dcommand.h49 static BROTLI_INLINE uint16_t GetCopyLengthCode(size_t copylen) { in GetCopyLengthCode() argument
50 if (copylen < 10) { in GetCopyLengthCode()
51 return (uint16_t)(copylen - 2); in GetCopyLengthCode()
52 } else if (copylen < 134) { in GetCopyLengthCode()
53 uint32_t nbits = Log2FloorNonZero(copylen - 6) - 1u; in GetCopyLengthCode()
54 return (uint16_t)((nbits << 1) + ((copylen - 6) >> nbits) + 4); in GetCopyLengthCode()
55 } else if (copylen < 2118) { in GetCopyLengthCode()
56 return (uint16_t)(Log2FloorNonZero(copylen - 70) + 12); in GetCopyLengthCode()
83 static BROTLI_INLINE void GetLengthCode(size_t insertlen, size_t copylen, in GetLengthCode() argument
87 uint16_t copycode = GetCopyLengthCode(copylen); in GetLengthCode()
[all …]
Dcompress_fragment.c226 static BROTLI_INLINE void EmitCopyLen(size_t copylen, in EmitCopyLen() argument
232 if (copylen < 10) { in EmitCopyLen()
234 depth[copylen + 14], bits[copylen + 14], storage_ix, storage); in EmitCopyLen()
235 ++histo[copylen + 14]; in EmitCopyLen()
236 } else if (copylen < 134) { in EmitCopyLen()
237 const size_t tail = copylen - 6; in EmitCopyLen()
244 } else if (copylen < 2118) { in EmitCopyLen()
245 const size_t tail = copylen - 70; in EmitCopyLen()
253 BrotliWriteBits(24, copylen - 2118, storage_ix, storage); in EmitCopyLen()
258 static BROTLI_INLINE void EmitCopyLenLastDistance(size_t copylen, in EmitCopyLenLastDistance() argument
[all …]
Dcompress_fragment_two_pass.c148 static BROTLI_INLINE void EmitCopyLen(size_t copylen, uint32_t** commands) { in EmitCopyLen() argument
149 if (copylen < 10) { in EmitCopyLen()
150 **commands = (uint32_t)(copylen + 38); in EmitCopyLen()
151 } else if (copylen < 134) { in EmitCopyLen()
152 const size_t tail = copylen - 6; in EmitCopyLen()
158 } else if (copylen < 2118) { in EmitCopyLen()
159 const size_t tail = copylen - 70; in EmitCopyLen()
165 const size_t extra = copylen - 2118; in EmitCopyLen()
172 size_t copylen, uint32_t** commands) { in EmitCopyLenLastDistance() argument
173 if (copylen < 12) { in EmitCopyLenLastDistance()
[all …]
/external/curl/docs/examples/
Dftpuploadfrommem.c55 size_t copylen = max; in read_callback() local
56 if(copylen > upload->sizeleft) in read_callback()
57 copylen = upload->sizeleft; in read_callback()
58 memcpy(ptr, upload->readptr, copylen); in read_callback()
59 upload->readptr += copylen; in read_callback()
60 upload->sizeleft -= copylen; in read_callback()
61 return copylen; in read_callback()
/external/apache-xml/src/main/java/org/apache/xml/utils/
DSuballocatedIntVector.java287 int copylen=m_blocksize-offset-1; in insertElementAt() local
297 System.arraycopy(block, offset , block, offset+1, copylen); in insertElementAt()
356 int copylen=m_blocksize-offset-1; in removeElementAt() local
361 System.arraycopy(block, offset+1, block, offset, copylen); in removeElementAt()
/external/elfutils/libdwelf/
Ddwelf_strtab.c340 size_t copylen = nulllen; in dwelf_strtab_finalize() local
342 copystrings (st->root, &endp, &copylen); in dwelf_strtab_finalize()
343 assert (copylen == st->total + nulllen); in dwelf_strtab_finalize()
/external/linux-kselftest/tools/testing/selftests/rseq/
Dparam_test.c901 size_t copylen; in this_cpu_memcpy_buffer_push() local
912 copylen = sizeof(item); in this_cpu_memcpy_buffer_push()
918 destptr, srcptr, copylen, in this_cpu_memcpy_buffer_push()
922 offset, destptr, srcptr, copylen, in this_cpu_memcpy_buffer_push()
945 size_t copylen; in this_cpu_memcpy_buffer_pop() local
956 copylen = sizeof(*item); in this_cpu_memcpy_buffer_pop()
960 offset, destptr, srcptr, copylen, in this_cpu_memcpy_buffer_pop()
/external/libevent/
Dbuffer.c1230 size_t copylen = chain->off - pos_in_chain; in evbuffer_copyout_from() local
1233 copylen); in evbuffer_copyout_from()
1234 data += copylen; in evbuffer_copyout_from()
1235 datlen -= copylen; in evbuffer_copyout_from()
/external/jemalloc/src/
Dctl.c1072 size_t copylen = (sizeof(t) <= *oldlenp) \
1074 memcpy(oldp, (void *)&(v), copylen); \
/external/jemalloc_new/src/
Dctl.c1322 size_t copylen = (sizeof(t) <= *oldlenp) \
1324 memcpy(oldp, (void *)&(v), copylen); \
/external/python/cpython2/Modules/
D_bsddb.c532 unsigned int srclen, copylen; in our_strlcpy() local
537 copylen = (srclen > n-1) ? n-1 : srclen; in our_strlcpy()
539 memcpy(dest, src, copylen); in our_strlcpy()
541 dest[copylen] = 0; in our_strlcpy()