Home
last modified time | relevance | path

Searched refs:masked_pos (Results 1 – 3 of 3) sorted by relevance

/external/brotli/c/enc/
Dringbuffer.h95 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWriteTail() local
96 if (BROTLI_PREDICT_FALSE(masked_pos < rb->tail_size_)) { in RingBufferWriteTail()
98 const size_t p = rb->size_ + masked_pos; in RingBufferWriteTail()
100 BROTLI_MIN(size_t, n, rb->tail_size_ - masked_pos)); in RingBufferWriteTail()
133 const size_t masked_pos = rb->pos_ & rb->mask_; in RingBufferWrite() local
137 if (BROTLI_PREDICT_TRUE(masked_pos + n <= rb->size_)) { in RingBufferWrite()
139 memcpy(&rb->buffer_[masked_pos], bytes, n); in RingBufferWrite()
143 memcpy(&rb->buffer_[masked_pos], bytes, in RingBufferWrite()
144 BROTLI_MIN(size_t, n, rb->total_size_ - masked_pos)); in RingBufferWrite()
146 memcpy(&rb->buffer_[0], bytes + (rb->size_ - masked_pos), in RingBufferWrite()
[all …]
Dliteral_cost.c103 size_t masked_pos = (pos + i) & mask; in EstimateBitCostsForLiteralsUTF8() local
104 size_t histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8()
Dbrotli_bit_stream.c1285 size_t masked_pos = position & mask; in BrotliStoreUncompressedMetaBlock() local
1289 if (masked_pos + len > mask + 1) { in BrotliStoreUncompressedMetaBlock()
1290 size_t len1 = mask + 1 - masked_pos; in BrotliStoreUncompressedMetaBlock()
1291 memcpy(&storage[*storage_ix >> 3], &input[masked_pos], len1); in BrotliStoreUncompressedMetaBlock()
1294 masked_pos = 0; in BrotliStoreUncompressedMetaBlock()
1296 memcpy(&storage[*storage_ix >> 3], &input[masked_pos], len); in BrotliStoreUncompressedMetaBlock()