/third_party/node/deps/brotli/c/enc/ |
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() [all …]
|
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 - 2118, storage_ix, storage); in EmitCopyLen() 258 static BROTLI_INLINE void EmitCopyLenLastDistance(size_t copylen, in EmitCopyLenLastDistance() argument [all …]
|
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() argument 173 if (copylen < 12) { in EmitCopyLenLastDistance() [all …]
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
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() [all …]
|
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 - 2118, storage_ix, storage); in EmitCopyLen() 258 static BROTLI_INLINE void EmitCopyLenLastDistance(size_t copylen, in EmitCopyLenLastDistance() argument [all …]
|
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() argument 173 if (copylen < 12) { in EmitCopyLenLastDistance() [all …]
|
/third_party/openssl/crypto/asn1/ |
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/ |
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/ |
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() 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() 1025 LWIP_ASSERT("invalid copylen", p->tot_len >= copylen); in lwip_recv_tcp() [all …]
|