Home
last modified time | relevance | path

Searched refs:bitlen (Results 1 – 25 of 27) sorted by relevance

12

/external/zopfli/src/zopflipng/lodepng/
Dlodepng_util.cpp310 int makeFromLengths(const std::vector<unsigned long>& bitlen, unsigned long maxbitlen) in makeFromLengths()
312 unsigned long numcodes = (unsigned long)(bitlen.size()), treepos = 0, nodefilled = 0; in makeFromLengths()
315 for(unsigned long bits = 0; bits < numcodes; bits++) blcount[bitlen[bits]]++; in makeFromLengths()
321 … for(unsigned long n = 0; n < numcodes; n++) if(bitlen[n] != 0) tree1d[n] = nextcode[bitlen[n]]++; in makeFromLengths()
324 for(unsigned long i = 0; i < bitlen[n]; i++) //the bits for this code in makeFromLengths()
326 unsigned long bit = (tree1d[n] >> (bitlen[n] - i - 1)) & 1; in makeFromLengths()
330 if(i + 1 == bitlen[n]) in makeFromLengths()
385 std::vector<unsigned long> bitlen(288, 8), bitlenD(32, 5);; in generateFixedTrees() local
386 for(size_t i = 144; i <= 255; i++) bitlen[i] = 9; in generateFixedTrees()
387 for(size_t i = 256; i <= 279; i++) bitlen[i] = 7; in generateFixedTrees()
[all …]
Dlodepng.cpp631 static unsigned HuffmanTree_makeFromLengths(HuffmanTree* tree, const unsigned* bitlen, in HuffmanTree_makeFromLengths() argument
637 for(i = 0; i < numcodes; i++) tree->lengths[i] = bitlen[i]; in HuffmanTree_makeFromLengths()
866 unsigned* bitlen = (unsigned*)lodepng_malloc(NUM_DEFLATE_CODE_SYMBOLS * sizeof(unsigned)); in generateFixedLitLenTree() local
867 if(!bitlen) return 83; /*alloc fail*/ in generateFixedLitLenTree()
870 for(i = 0; i <= 143; i++) bitlen[i] = 8; in generateFixedLitLenTree()
871 for(i = 144; i <= 255; i++) bitlen[i] = 9; in generateFixedLitLenTree()
872 for(i = 256; i <= 279; i++) bitlen[i] = 7; in generateFixedLitLenTree()
873 for(i = 280; i <= 287; i++) bitlen[i] = 8; in generateFixedLitLenTree()
875 error = HuffmanTree_makeFromLengths(tree, bitlen, NUM_DEFLATE_CODE_SYMBOLS, 15); in generateFixedLitLenTree()
877 lodepng_free(bitlen); in generateFixedLitLenTree()
[all …]
/external/tcpdump/
Dprint-domain.c64 int bitlen, bytelen; in ns_nskip() local
70 if ((bitlen = *cp++) == 0) in ns_nskip()
71 bitlen = 256; in ns_nskip()
72 bytelen = (bitlen + 7) / 8; in ns_nskip()
88 int bitlen, slen, b; in blabel_print() local
94 if ((bitlen = *cp) == 0) in blabel_print()
95 bitlen = 256; in blabel_print()
96 slen = (bitlen + 3) / 4; in blabel_print()
101 for (bitp = cp + 1, b = bitlen; bitp < lim && b > 7; b -= 8, bitp++) { in blabel_print()
114 ND_PRINT((ndo, "/%d]", bitlen)); in blabel_print()
[all …]
/external/iproute2/ip/
Dtcp_metrics.c159 if (f.daddr.family && f.daddr.bitlen >= 0 && in process_msg()
160 inet_addr_match(&daddr, &f.daddr, f.daddr.bitlen)) in process_msg()
165 if (slen && f.saddr.family && f.saddr.bitlen >= 0 && in process_msg()
166 inet_addr_match(&saddr, &f.saddr, f.saddr.bitlen)) in process_msg()
317 f.daddr.bitlen = -1; in tcpm_do_cmd()
319 f.saddr.bitlen = -1; in tcpm_do_cmd()
339 if (f.saddr.bitlen >= 0) in tcpm_do_cmd()
343 if (f.saddr.bytelen && f.saddr.bytelen * 8 == f.saddr.bitlen) { in tcpm_do_cmd()
364 if (f.daddr.bitlen >= 0) in tcpm_do_cmd()
368 if (f.daddr.bytelen && f.daddr.bytelen * 8 == f.daddr.bitlen) { in tcpm_do_cmd()
[all …]
Dipmroute.c100 if (tb[RTA_DST] && filter.mdst.bitlen > 0) { in print_mroute()
106 if (inet_addr_match(&dst, &filter.mdst, filter.mdst.bitlen)) in print_mroute()
110 if (tb[RTA_SRC] && filter.msrc.bitlen > 0) { in print_mroute()
116 if (inet_addr_match(&src, &filter.msrc, filter.msrc.bitlen)) in print_mroute()
191 filter.mdst.bitlen = -1; in ipmroute_reset_filter()
192 filter.msrc.bitlen = -1; in ipmroute_reset_filter()
Diproute.c186 (r->rtm_family != filter.rdst.family || filter.rdst.bitlen > r->rtm_dst_len)) in filter_nlmsg()
190 (filter.mdst.bitlen >= 0 && filter.mdst.bitlen < r->rtm_dst_len))) in filter_nlmsg()
193 (r->rtm_family != filter.rsrc.family || filter.rsrc.bitlen > r->rtm_src_len)) in filter_nlmsg()
197 (filter.msrc.bitlen >= 0 && filter.msrc.bitlen < r->rtm_src_len))) in filter_nlmsg()
221 if (filter.rvia.bitlen>0) { in filter_nlmsg()
233 if (filter.rprefsrc.bitlen>0) { in filter_nlmsg()
240 if (filter.rdst.family && inet_addr_match(&dst, &filter.rdst, filter.rdst.bitlen)) in filter_nlmsg()
242 if (filter.mdst.family && filter.mdst.bitlen >= 0 && in filter_nlmsg()
246 if (filter.rsrc.family && inet_addr_match(&src, &filter.rsrc, filter.rsrc.bitlen)) in filter_nlmsg()
248 if (filter.msrc.family && filter.msrc.bitlen >= 0 && in filter_nlmsg()
[all …]
Dipmaddr.c114 ma->addr.bitlen = len<<3; in read_dev_mcast()
138 m.addr.bitlen = 32; in read_igmp()
190 ma->addr.bitlen = len<<3; in read_igmp6()
Dipl2tp.c302 p->local_ip.bitlen = -1; in get_response()
308 p->peer_ip.bitlen = -1; in get_response()
314 p->local_ip.bitlen = -1; in get_response()
320 p->peer_ip.bitlen = -1; in get_response()
Dipxfrm.c1087 filter.id_src_mask = src.bitlen; in xfrm_id_parse()
1100 filter.id_dst_mask = dst.bitlen; in xfrm_id_parse()
1401 sel->prefixlen_s = src.bitlen; in xfrm_selector_parse()
1403 filter.sel_src_mask = src.bitlen; in xfrm_selector_parse()
1414 sel->prefixlen_d = dst.bitlen; in xfrm_selector_parse()
1416 filter.sel_dst_mask = dst.bitlen; in xfrm_selector_parse()
Dlink_iptnl.c269 ip6rdprefixlen = prefix.bitlen; in iptunnel_parse_opt()
276 ip6rdrelayprefixlen = prefix.bitlen; in iptunnel_parse_opt()
Dipaddrlabel.c180 req.ifal.ifal_prefixlen = prefix.bitlen; in ipaddrlabel_modify()
Diprule.c367 req.r.rtm_src_len = dst.bitlen; in iprule_modify()
373 req.r.rtm_dst_len = dst.bitlen; in iprule_modify()
Dipaddress.c997 if (inet_addr_match(&dst, &filter.pfx, filter.pfx.bitlen)) in print_addrinfo()
1372 if (inet_addr_match(&dst, &filter.pfx, filter.pfx.bitlen)) in ipaddr_filter()
1802 req.ifa.ifa_prefixlen = peer.bitlen; in ipaddr_modify()
1912 req.ifa.ifa_prefixlen = lcl.bitlen; in ipaddr_modify()
1922 if (brd.bitlen <= 30) { in ipaddr_modify()
1923 for (i = 31; i >= brd.bitlen; i--) { in ipaddr_modify()
Diptunnel.c541 ip6rd.prefixlen = prefix.bitlen; in do_6rd()
548 ip6rd.relay_prefixlen = prefix.bitlen; in do_6rd()
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java1020 int bitlen = bigInt.bitLength(); in toIntegerBytes() local
1022 bitlen = ((bitlen + 7) >> 3) << 3; in toIntegerBytes()
1025 if (((bigInt.bitLength() % 8) != 0) && (((bigInt.bitLength() / 8) + 1) == (bitlen / 8))) { in toIntegerBytes()
1037 int startDst = bitlen / 8 - len; // to pad w/ nulls as per spec in toIntegerBytes()
1038 byte[] resizedBytes = new byte[bitlen / 8]; in toIntegerBytes()
/external/iproute2/lib/
Dutils.c433 addr->bitlen = -1; in get_addr_1()
445 addr->bitlen = len * 8; in get_addr_1()
456 addr->bitlen = -1; in get_addr_1()
468 addr->bitlen = -1; in get_addr_1()
479 addr->bitlen = 20; in get_addr_1()
498 addr->bitlen = -1; in get_addr_1()
540 dst->bitlen = 0; in get_prefix_1()
550 dst->bitlen = af_bit_len(dst->family); in get_prefix_1()
554 || plen > dst->bitlen) { in get_prefix_1()
559 dst->bitlen = plen; in get_prefix_1()
/external/toybox/toys/pending/
Dcompress.c261 static void len2huff(struct huff *huff, char bitlen[], int len) in len2huff() argument
268 for (i = 0; i<len; i++) huff->length[bitlen[i]]++; in len2huff()
274 for (i = 0; i<len; i++) if (bitlen[i]) huff->symbol[offset[bitlen[i]]++] = i; in len2huff()
/external/dhcpcd-6.8.2/crypt/
Dsha256.c242 uint64_t bitlen; in SHA256_Update() local
250 bitlen = len << 3; in SHA256_Update()
253 ctx->count += bitlen; in SHA256_Update()
/external/iproute2/tc/
Dm_nat.c64 sel->mask = htonl(~0u << (32 - addr.bitlen)); in parse_nat_args()
Df_u32.c348 if (addr.bitlen) in parse_ip_addr()
349 mask = htonl(0xFFFFFFFF << (32 - addr.bitlen)); in parse_ip_addr()
383 plen = addr.bitlen; in parse_ip6_addr()
Df_flower.c118 bits = addr.bitlen; in flower_parse_ip_addr()
/external/iproute2/misc/
Dss.c1106 if (a->addr.bitlen) { in run_ssfilter()
1108 if (!inet2_addr_match(&s->remote, &a->addr, a->addr.bitlen)) in run_ssfilter()
1122 if (a->addr.bitlen) { in run_ssfilter()
1124 if (!inet2_addr_match(&s->local, &a->addr, a->addr.bitlen)) in run_ssfilter()
1216 cond->prefix_len = a->addr.bitlen; in ssfilter_bytecompile()
1320 if (a->addr.bitlen) { in remember_he()
1329 b->addr.bitlen = len*8; in remember_he()
1343 a->addr.bitlen = 0; in get_dns_host()
1400 a.addr.bitlen = 8*strlen(p); in parse_hostcond()
1408 a.addr.bitlen = 0; in parse_hostcond()
[all …]
/external/iproute2/include/
Dutils.h61 __s16 bitlen; member
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_fax.cpp511 void AddBitStream(uint8_t* dest_buf, int& dest_bitpos, int data, int bitlen) { in AddBitStream() argument
512 for (int i = bitlen - 1; i >= 0; i--) { in AddBitStream()
/external/dhcpcd-6.8.2/
Dipv6.c446 int bytelen, bitlen; in ipv6_makeprefix() local
454 bitlen = len % NBBY; in ipv6_makeprefix()
456 if (bitlen != 0) in ipv6_makeprefix()
458 (uint8_t)(prefix->s6_addr[bytelen] >> (NBBY - bitlen)); in ipv6_makeprefix()

12