Home
last modified time | relevance | path

Searched refs:sublen (Results 1 – 9 of 9) sorted by relevance

/external/zopfli/src/zopfli/
Dcache.c33 lmc->sublen = (unsigned char*)malloc(ZOPFLI_CACHE_LENGTH * 3 * blocksize); in ZopfliInitCache()
39 for (i = 0; i < ZOPFLI_CACHE_LENGTH * blocksize * 3; i++) lmc->sublen[i] = 0; in ZopfliInitCache()
45 free(lmc->sublen); in ZopfliCleanCache()
48 void ZopfliSublenToCache(const unsigned short* sublen, in ZopfliSublenToCache() argument
60 cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3]; in ZopfliSublenToCache()
63 if (i == length || sublen[i] != sublen[i + 1]) { in ZopfliSublenToCache()
65 cache[j * 3 + 1] = sublen[i] % 256; in ZopfliSublenToCache()
66 cache[j * 3 + 2] = (sublen[i] >> 8) % 256; in ZopfliSublenToCache()
83 unsigned short* sublen) { in ZopfliCacheToSublen() argument
92 cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3]; in ZopfliCacheToSublen()
[all …]
Dlz77.c164 unsigned short* sublen, unsigned short* distance, unsigned short* length) { in TryGetFromLongestMatchCache() argument
175 (sublen && ZopfliMaxCachedSublen(s->lmc, in TryGetFromLongestMatchCache()
179 if (!sublen || s->lmc->length[lmcpos] in TryGetFromLongestMatchCache()
183 if (sublen) { in TryGetFromLongestMatchCache()
184 ZopfliCacheToSublen(s->lmc, lmcpos, *length, sublen); in TryGetFromLongestMatchCache()
185 *distance = sublen[*length]; in TryGetFromLongestMatchCache()
187 assert(sublen[*length] == s->lmc->dist[lmcpos]); in TryGetFromLongestMatchCache()
208 const unsigned short* sublen, in StoreInLongestMatchCache() argument
219 if (s->lmc && limit == ZOPFLI_MAX_MATCH && sublen && !cache_available) { in StoreInLongestMatchCache()
224 ZopfliSublenToCache(sublen, lmcpos, length, s->lmc); in StoreInLongestMatchCache()
[all …]
Dcache.h42 unsigned char* sublen; member
52 void ZopfliSublenToCache(const unsigned short* sublen,
59 unsigned short* sublen);
Dlz77.h94 unsigned short* sublen, unsigned short* distance, unsigned short* length);
Dsqueeze.c219 unsigned short sublen[259]; in GetBestLengths() local
268 ZopfliFindLongestMatch(s, h, in, i, inend, ZOPFLI_MAX_MATCH, sublen, in GetBestLengths()
288 newCost = costs[j] + costmodel(k, sublen[k], costcontext); in GetBestLengths()
/external/tcpdump/
Dprint-babel.c253 uint8_t subtype, sublen; in subtlvs_print() local
264 sublen = *cp++; in subtlvs_print()
265 if(cp + sublen > ep) in subtlvs_print()
271 cp += sublen; in subtlvs_print()
275 if (sublen == 0) { in subtlvs_print()
280 while(sublen--) { in subtlvs_print()
289 cp += sublen; in subtlvs_print()
Dprint-lldp.c643 u_int sublen; in lldp_private_8021_print() local
682 sublen = *(tptr+6); in lldp_private_8021_print()
683 if (tlv_len < 7+sublen) { in lldp_private_8021_print()
687 safeputs((const char *)tptr+7, sublen); in lldp_private_8021_print()
693 sublen = *(tptr+4); in lldp_private_8021_print()
694 if (tlv_len < 5+sublen) { in lldp_private_8021_print()
698 safeputs((const char *)tptr+5, sublen); in lldp_private_8021_print()
774 sublen=tlv_len-5; in lldp_private_8021_print()
775 if(sublen%3!=0){ in lldp_private_8021_print()
780 while(i<sublen) { in lldp_private_8021_print()
[all …]
Dprint-isoclns.c1970 u_int metric, status_byte, bit_length, byte_length, sublen, processed, subtlvtype, subtlvlen; in isis_print_extd_ip_reach() local
2053 sublen=*(tptr++); in isis_print_extd_ip_reach()
2054 processed+=sublen+1; in isis_print_extd_ip_reach()
2055 printf(" (%u)",sublen); /* print out subTLV length */ in isis_print_extd_ip_reach()
2057 while (sublen>0) { in isis_print_extd_ip_reach()
2067 sublen-=(subtlvlen+2); in isis_print_extd_ip_reach()
/external/wpa_supplicant_8/src/ap/
Dieee802_1x.c1437 u8 *buf, *pos, *end, type, sublen; in ieee802_1x_check_hs20() local
1457 sublen = *pos++; in ieee802_1x_check_hs20()
1458 if (sublen < 2) in ieee802_1x_check_hs20()
1460 sublen -= 2; /* skip header */ in ieee802_1x_check_hs20()
1461 if (pos + sublen > end) in ieee802_1x_check_hs20()
1466 ieee802_1x_hs20_sub_rem(sta, pos, sublen); in ieee802_1x_check_hs20()
1469 ieee802_1x_hs20_deauth_req(hapd, sta, pos, sublen); in ieee802_1x_check_hs20()
1472 ieee802_1x_hs20_session_info(hapd, sta, pos, sublen, in ieee802_1x_check_hs20()