/third_party/node/deps/brotli/c/enc/ |
H A D | command.h | 49 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() 120 InitCommand(Command* self, const BrotliDistanceParams* dist, size_t insertlen, size_t copylen, int copylen_code_delta, size_t distance_code) InitCommand() argument [all...] |
H A D | compress_fragment.c | 226 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 in EmitCopyLen() 258 EmitCopyLenLastDistance(size_t copylen, const uint8_t depth[128], const uint16_t bits[128], uint32_t histo[128], size_t* storage_ix, uint8_t* storage) EmitCopyLenLastDistance() argument [all...] |
H A D | compress_fragment_two_pass.c | 148 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() 173 if (copylen < 1 in EmitCopyLenLastDistance() 171 EmitCopyLenLastDistance( size_t copylen, uint32_t** commands) EmitCopyLenLastDistance() argument [all...] |
/third_party/skia/third_party/externals/brotli/c/enc/ |
H A D | command.h | 49 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() 120 InitCommand(Command* self, const BrotliDistanceParams* dist, size_t insertlen, size_t copylen, int copylen_code_delta, size_t distance_code) InitCommand() argument [all...] |
H A D | compress_fragment.c | 226 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 in EmitCopyLen() 258 EmitCopyLenLastDistance(size_t copylen, const uint8_t depth[128], const uint16_t bits[128], uint32_t histo[128], size_t* storage_ix, uint8_t* storage) EmitCopyLenLastDistance() argument [all...] |
H A D | compress_fragment_two_pass.c | 148 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() 173 if (copylen < 1 in EmitCopyLenLastDistance() 171 EmitCopyLenLastDistance( size_t copylen, uint32_t** commands) EmitCopyLenLastDistance() argument [all...] |
/third_party/curl/docs/examples/ |
H A D | ftpuploadfrommem.c | 57 size_t copylen = max; in read_callback() local 58 if(copylen > upload->sizeleft) in read_callback() 59 copylen = upload->sizeleft; in read_callback() 60 memcpy(ptr, upload->readptr, copylen); in read_callback() 61 upload->readptr += copylen; in read_callback() 62 upload->sizeleft -= copylen; in read_callback() 63 return copylen; in read_callback()
|
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | bio_asn1.c | 51 int copylen; member 195 ctx->copylen = inl; in asn1_bio_write() 217 if (inl > ctx->copylen) in asn1_bio_write() 218 wrmax = ctx->copylen; in asn1_bio_write() 225 ctx->copylen -= ret; in asn1_bio_write() 229 if (ctx->copylen == 0) in asn1_bio_write()
|
/third_party/openssl/crypto/asn1/ |
H A D | bio_asn1.c | 51 int copylen; member 195 ctx->copylen = inl; in asn1_bio_write() 217 if (inl > ctx->copylen) in asn1_bio_write() 218 wrmax = ctx->copylen; in asn1_bio_write() 225 ctx->copylen -= ret; in asn1_bio_write() 229 if (ctx->copylen == 0) in asn1_bio_write()
|
/third_party/elfutils/libdwelf/ |
H A D | dwelf_strtab.c | 338 size_t copylen = nulllen; in dwelf_strtab_finalize() local 340 copystrings (st->root, &endp, ©len); in dwelf_strtab_finalize() 341 assert (copylen == st->total + nulllen); in dwelf_strtab_finalize()
|
/third_party/lwip/src/api/ |
H A D | sockets.c | 966 u16_t copylen; in lwip_recv_tcp() local 1003 copylen = p->tot_len; in lwip_recv_tcp() 1005 copylen = (u16_t)recv_left; in lwip_recv_tcp() 1007 if (recvd + copylen < recvd) { in lwip_recv_tcp() 1009 copylen = (u16_t)(SSIZE_MAX - recvd); in lwip_recv_tcp() 1014 pbuf_copy_partial(p, (u8_t *)mem + recvd, copylen, 0); in lwip_recv_tcp() local 1016 recvd += copylen; in lwip_recv_tcp() 1019 LWIP_ASSERT("invalid copylen, len would underflow", recv_left >= copylen); in lwip_recv_tcp() 1020 recv_left -= copylen; in lwip_recv_tcp() 1124 u16_t buflen, copylen, copied; lwip_recvfrom_udp_raw() local [all...] |
/third_party/glfw/deps/ |
H A D | nuklear.h | 8398 int copylen; in nk_str_insert_at_char() local 8406 copylen = (int)s->buffer.allocated - pos; in nk_str_insert_at_char() 8407 if (!copylen) { in nk_str_insert_at_char() 8415 NK_ASSERT(((int)pos + (int)len + ((int)copylen - 1)) >= 0); in nk_str_insert_at_char() 8416 NK_ASSERT(((int)pos + ((int)copylen - 1)) >= 0); in nk_str_insert_at_char() 8417 dst = nk_ptr_add(char, s->buffer.memory.ptr, pos + len + (copylen - 1)); in nk_str_insert_at_char() 8418 src = nk_ptr_add(char, s->buffer.memory.ptr, pos + (copylen-1)); in nk_str_insert_at_char() 8419 for (i = 0; i < copylen; ++i) *dst-- = *src--; in nk_str_insert_at_char()
|