Home
last modified time | relevance | path

Searched refs:BROTLI_INLINE (Results 1 – 25 of 35) sorted by relevance

12

/external/brotli/c/common/
Dplatform.h125 #define BROTLI_INLINE BROTLI_MAYBE_INLINE __attribute__((__always_inline__)) macro
127 #define BROTLI_INLINE BROTLI_MAYBE_INLINE __forceinline macro
129 #define BROTLI_INLINE BROTLI_MAYBE_INLINE _Pragma("FUNC_ALWAYS_INLINE;") macro
131 #define BROTLI_INLINE BROTLI_MAYBE_INLINE _Pragma("inline=forced") macro
133 #define BROTLI_INLINE BROTLI_MAYBE_INLINE macro
178 #define BROTLI_UNUSED_FUNCTION static BROTLI_INLINE __attribute__ ((unused))
180 #define BROTLI_UNUSED_FUNCTION static BROTLI_INLINE
291 static BROTLI_INLINE uint16_t BrotliUnalignedRead16(const void* p) { in BrotliUnalignedRead16()
296 static BROTLI_INLINE uint32_t BrotliUnalignedRead32(const void* p) { in BrotliUnalignedRead32()
301 static BROTLI_INLINE uint64_t BrotliUnalignedRead64(const void* p) { in BrotliUnalignedRead64()
[all …]
/external/brotli/c/dec/
Dbit_reader.h34 static BROTLI_INLINE uint32_t BitMask(uint32_t n) { in BitMask()
68 static BROTLI_INLINE void BrotliBitReaderSaveState( in BrotliBitReaderSaveState()
76 static BROTLI_INLINE void BrotliBitReaderRestoreState( in BrotliBitReaderRestoreState()
84 static BROTLI_INLINE uint32_t BrotliGetAvailableBits( in BrotliGetAvailableBits()
91 static BROTLI_INLINE size_t BrotliGetRemainingBytes(BrotliBitReader* br) { in BrotliGetRemainingBytes()
97 static BROTLI_INLINE BROTLI_BOOL BrotliCheckInputAmount( in BrotliCheckInputAmount()
106 static BROTLI_INLINE void BrotliFillBitWindow( in BrotliFillBitWindow()
158 static BROTLI_INLINE void BrotliFillBitWindow16(BrotliBitReader* const br) { in BrotliFillBitWindow16()
164 static BROTLI_INLINE BROTLI_BOOL BrotliPullByte(BrotliBitReader* const br) { in BrotliPullByte()
182 static BROTLI_INLINE brotli_reg_t BrotliGetBitsUnmasked( in BrotliGetBitsUnmasked()
[all …]
Ddecode.c169 static BROTLI_INLINE void memmove16(uint8_t* dst, uint8_t* src) { in memmove16()
347 static BROTLI_INLINE uint32_t DecodeSymbol(uint32_t bits, in DecodeSymbol()
365 static BROTLI_INLINE uint32_t ReadSymbol(const HuffmanCode* table, in ReadSymbol()
412 static BROTLI_INLINE BROTLI_BOOL SafeReadSymbol( in SafeReadSymbol()
423 static BROTLI_INLINE void PreloadSymbol(int safe, in PreloadSymbol()
439 static BROTLI_INLINE uint32_t ReadPreloadedSymbol(const HuffmanCode* table, in ReadPreloadedSymbol()
460 static BROTLI_INLINE uint32_t Log2Floor(uint32_t x) { in Log2Floor()
513 static BROTLI_INLINE void ProcessSingleCodeLength(uint32_t code_len, in ProcessSingleCodeLength()
540 static BROTLI_INLINE void ProcessRepeatedCodeLength(uint32_t code_len, in ProcessRepeatedCodeLength()
865 static BROTLI_INLINE uint32_t ReadBlockLength(const HuffmanCode* table, in ReadBlockLength()
[all …]
Dhuffman.h49 static BROTLI_INLINE HuffmanCode ConstructHuffmanCode(const uint8_t bits, in ConstructHuffmanCode()
83 static BROTLI_INLINE HuffmanCode ConstructHuffmanCode(const uint8_t bits, in ConstructHuffmanCode()
/external/brotli/c/enc/
Dcommand.h32 static BROTLI_INLINE uint16_t GetInsertLengthCode(size_t insertlen) { in GetInsertLengthCode()
49 static BROTLI_INLINE uint16_t GetCopyLengthCode(size_t copylen) { in GetCopyLengthCode()
62 static BROTLI_INLINE uint16_t CombineLengthCodes( in CombineLengthCodes()
83 static BROTLI_INLINE void GetLengthCode(size_t insertlen, size_t copylen, in GetLengthCode()
91 static BROTLI_INLINE uint32_t GetInsertBase(uint16_t inscode) { in GetInsertBase()
95 static BROTLI_INLINE uint32_t GetInsertExtra(uint16_t inscode) { in GetInsertExtra()
99 static BROTLI_INLINE uint32_t GetCopyBase(uint16_t copycode) { in GetCopyBase()
103 static BROTLI_INLINE uint32_t GetCopyExtra(uint16_t copycode) { in GetCopyExtra()
120 static BROTLI_INLINE void InitCommand(Command* self, in InitCommand()
138 static BROTLI_INLINE void InitInsertCommand(Command* self, size_t insertlen) { in InitInsertCommand()
[all …]
Dquality.h36 static BROTLI_INLINE size_t MaxHashTableSize(int quality) { in MaxHashTableSize()
47 static BROTLI_INLINE size_t MaxZopfliLen(const BrotliEncoderParams* params) { in MaxZopfliLen()
54 static BROTLI_INLINE size_t MaxZopfliCandidates( in MaxZopfliCandidates()
59 static BROTLI_INLINE void SanitizeParams(BrotliEncoderParams* params) { in SanitizeParams()
75 static BROTLI_INLINE int ComputeLgBlock(const BrotliEncoderParams* params) { in ComputeLgBlock()
99 static BROTLI_INLINE int ComputeRbBits(const BrotliEncoderParams* params) { in ComputeRbBits()
103 static BROTLI_INLINE size_t MaxMetablockSize( in MaxMetablockSize()
116 static BROTLI_INLINE size_t LiteralSpreeLengthForSparseSearch( in LiteralSpreeLengthForSparseSearch()
121 static BROTLI_INLINE void ChooseHasher(const BrotliEncoderParams* params, in ChooseHasher()
Dhash.h54 static BROTLI_INLINE HasherCommon* GetHasherCommon(HasherHandle handle) { in GetHasherCommon()
84 static BROTLI_INLINE uint32_t Hash14(const uint8_t* data) { in Hash14()
91 static BROTLI_INLINE void PrepareDistanceCache( in PrepareDistanceCache()
134 static BROTLI_INLINE score_t BackwardReferenceScore( in BackwardReferenceScore()
140 static BROTLI_INLINE score_t BackwardReferenceScoreUsingLastDistance( in BackwardReferenceScoreUsingLastDistance()
146 static BROTLI_INLINE score_t BackwardReferencePenaltyUsingLastDistance( in BackwardReferencePenaltyUsingLastDistance()
151 static BROTLI_INLINE BROTLI_BOOL TestStaticDictionaryItem( in TestStaticDictionaryItem()
194 static BROTLI_INLINE void SearchInStaticDictionary( in SearchInStaticDictionary()
225 static BROTLI_INLINE void InitBackwardMatch(BackwardMatch* self, in InitBackwardMatch()
231 static BROTLI_INLINE void InitDictionaryBackwardMatch(BackwardMatch* self, in InitDictionaryBackwardMatch()
[all …]
Dhistogram_inc.h18 static BROTLI_INLINE void FN(HistogramClear)(FN(Histogram)* self) { in FN()
24 static BROTLI_INLINE void FN(ClearHistograms)( in FN()
30 static BROTLI_INLINE void FN(HistogramAdd)(FN(Histogram)* self, size_t val) { in FN()
35 static BROTLI_INLINE void FN(HistogramAddVector)(FN(Histogram)* self, in FN()
42 static BROTLI_INLINE void FN(HistogramAddHistogram)(FN(Histogram)* self, in FN()
51 static BROTLI_INLINE size_t FN(HistogramDataSize)(void) { return DATA_SIZE; } in FN()
Dhash_longest_match64_inc.h19 static BROTLI_INLINE size_t FN(HashTypeLength)(void) { return 8; } in FN()
20 static BROTLI_INLINE size_t FN(StoreLookahead)(void) { return 8; } in FN()
23 static BROTLI_INLINE uint32_t FN(HashBytes)(const uint8_t* data, in FN()
54 static BROTLI_INLINE HashLongestMatch* FN(Self)(HasherHandle handle) { in FN()
58 static BROTLI_INLINE uint16_t* FN(Num)(HashLongestMatch* self) { in FN()
62 static BROTLI_INLINE uint32_t* FN(Buckets)(HashLongestMatch* self) { in FN()
96 static BROTLI_INLINE size_t FN(HashMemAllocInBytes)( in FN()
108 static BROTLI_INLINE void FN(Store)(HasherHandle handle, const uint8_t* data, in FN()
121 static BROTLI_INLINE void FN(StoreRange)(HasherHandle handle, in FN()
130 static BROTLI_INLINE void FN(StitchToPreviousBlock)(HasherHandle handle, in FN()
[all …]
Dhash_composite_inc.h18 static BROTLI_INLINE size_t FN(HashTypeLength)(void) { in FN()
24 static BROTLI_INLINE size_t FN(StoreLookahead)(void) { in FN()
36 static BROTLI_INLINE HashComposite* FN(Self)(HasherHandle handle) { in FN()
80 static BROTLI_INLINE size_t FN(HashMemAllocInBytes)( in FN()
88 static BROTLI_INLINE void FN(Store)(HasherHandle BROTLI_RESTRICT handle, in FN()
95 static BROTLI_INLINE void FN(StoreRange)(HasherHandle handle, in FN()
103 static BROTLI_INLINE void FN(StitchToPreviousBlock)(HasherHandle handle, in FN()
113 static BROTLI_INLINE void FN(PrepareDistanceCache)( in FN()
120 static BROTLI_INLINE void FN(FindLongestMatch)(HasherHandle handle, in FN()
Dhash_to_binary_tree_inc.h22 static BROTLI_INLINE size_t FN(HashTypeLength)(void) { return 4; } in FN()
23 static BROTLI_INLINE size_t FN(StoreLookahead)(void) { in FN()
57 static BROTLI_INLINE HashToBinaryTree* FN(Self)(HasherHandle handle) { in FN()
61 static BROTLI_INLINE uint32_t* FN(Forest)(HashToBinaryTree* self) { in FN()
85 static BROTLI_INLINE size_t FN(HashMemAllocInBytes)( in FN()
95 static BROTLI_INLINE size_t FN(LeftChildIndex)(HashToBinaryTree* self, in FN()
100 static BROTLI_INLINE size_t FN(RightChildIndex)(HashToBinaryTree* self, in FN()
115 static BROTLI_INLINE BackwardMatch* FN(StoreAndFindMatches)( in FN()
202 static BROTLI_INLINE size_t FN(FindAllMatches)(HasherHandle handle, in FN()
269 static BROTLI_INLINE void FN(Store)(HasherHandle handle, const uint8_t* data, in FN()
[all …]
Dhash_longest_match_inc.h19 static BROTLI_INLINE size_t FN(HashTypeLength)(void) { return 4; } in FN()
20 static BROTLI_INLINE size_t FN(StoreLookahead)(void) { return 4; } in FN()
50 static BROTLI_INLINE HashLongestMatch* FN(Self)(HasherHandle handle) { in FN()
54 static BROTLI_INLINE uint16_t* FN(Num)(HashLongestMatch* self) { in FN()
58 static BROTLI_INLINE uint32_t* FN(Buckets)(HashLongestMatch* self) { in FN()
90 static BROTLI_INLINE size_t FN(HashMemAllocInBytes)( in FN()
102 static BROTLI_INLINE void FN(Store)(HasherHandle handle, const uint8_t* data, in FN()
114 static BROTLI_INLINE void FN(StoreRange)(HasherHandle handle, in FN()
123 static BROTLI_INLINE void FN(StitchToPreviousBlock)(HasherHandle handle, in FN()
136 static BROTLI_INLINE void FN(PrepareDistanceCache)( in FN()
[all …]
Dhash_rolling_inc.h23 static BROTLI_INLINE size_t FN(HashTypeLength)(void) { return 4; } in FN()
24 static BROTLI_INLINE size_t FN(StoreLookahead)(void) { return 4; } in FN()
54 static BROTLI_INLINE HashRolling* FN(Self)(HasherHandle handle) { in FN()
96 static BROTLI_INLINE size_t FN(HashMemAllocInBytes)( in FN()
105 static BROTLI_INLINE void FN(Store)(HasherHandle BROTLI_RESTRICT handle, in FN()
113 static BROTLI_INLINE void FN(StoreRange)(HasherHandle handle, in FN()
123 static BROTLI_INLINE void FN(StitchToPreviousBlock)(HasherHandle handle, in FN()
148 static BROTLI_INLINE void FN(PrepareDistanceCache)( in FN()
154 static BROTLI_INLINE void FN(FindLongestMatch)(HasherHandle handle, in FN()
Dhash_forgetful_chain_inc.h27 static BROTLI_INLINE size_t FN(HashTypeLength)(void) { return 4; } in FN()
28 static BROTLI_INLINE size_t FN(StoreLookahead)(void) { return 4; } in FN()
31 static BROTLI_INLINE size_t FN(HashBytes)(const uint8_t* data) { in FN()
57 static BROTLI_INLINE HashForgetfulChain* FN(Self)(HasherHandle handle) { in FN()
91 static BROTLI_INLINE size_t FN(HashMemAllocInBytes)( in FN()
102 static BROTLI_INLINE void FN(Store)(HasherHandle BROTLI_RESTRICT handle, in FN()
117 static BROTLI_INLINE void FN(StoreRange)(HasherHandle handle, in FN()
126 static BROTLI_INLINE void FN(StitchToPreviousBlock)(HasherHandle handle, in FN()
139 static BROTLI_INLINE void FN(PrepareDistanceCache)( in FN()
156 static BROTLI_INLINE void FN(FindLongestMatch)(HasherHandle handle, in FN()
Dhash_longest_match_quickly_inc.h18 static BROTLI_INLINE size_t FN(HashTypeLength)(void) { return 8; } in FN()
19 static BROTLI_INLINE size_t FN(StoreLookahead)(void) { return 8; } in FN()
41 static BROTLI_INLINE HashLongestMatchQuickly* FN(Self)(HasherHandle handle) { in FN()
71 static BROTLI_INLINE size_t FN(HashMemAllocInBytes)( in FN()
83 static BROTLI_INLINE void FN(Store)(HasherHandle handle, in FN()
91 static BROTLI_INLINE void FN(StoreRange)(HasherHandle handle, in FN()
100 static BROTLI_INLINE void FN(StitchToPreviousBlock)( in FN()
113 static BROTLI_INLINE void FN(PrepareDistanceCache)( in FN()
127 static BROTLI_INLINE void FN(FindLongestMatch)( in FN()
Dringbuffer.h49 static BROTLI_INLINE void RingBufferInit(RingBuffer* rb) { in RingBufferInit()
56 static BROTLI_INLINE void RingBufferSetup( in RingBufferSetup()
66 static BROTLI_INLINE void RingBufferFree(MemoryManager* m, RingBuffer* rb) { in RingBufferFree()
72 static BROTLI_INLINE void RingBufferInitBuffer( in RingBufferInitBuffer()
93 static BROTLI_INLINE void RingBufferWriteTail( in RingBufferWriteTail()
105 static BROTLI_INLINE void RingBufferWrite( in RingBufferWrite()
Dentropy_encode_static.h83 static BROTLI_INLINE void StoreStaticCodeLengthCode( in StoreStaticCodeLengthCode()
516 static BROTLI_INLINE void StoreStaticCommandHuffmanTree( in StoreStaticCommandHuffmanTree()
530 static BROTLI_INLINE void StoreStaticDistanceHuffmanTree( in StoreStaticDistanceHuffmanTree()
Dfast_log.h21 static BROTLI_INLINE uint32_t Log2FloorNonZero(size_t n) { in Log2FloorNonZero()
129 static BROTLI_INLINE double FastLog2(size_t v) { in FastLog2()
Dcompress_fragment.c43 static BROTLI_INLINE uint32_t Hash(const uint8_t* p, size_t shift) { in Hash()
48 static BROTLI_INLINE uint32_t HashBytesAtOffset( in HashBytesAtOffset()
58 static BROTLI_INLINE BROTLI_BOOL IsMatch(const uint8_t* p1, const uint8_t* p2) { in IsMatch()
177 static BROTLI_INLINE void EmitInsertLen(size_t insertlen, in EmitInsertLen()
209 static BROTLI_INLINE void EmitLongInsertLen(size_t insertlen, in EmitLongInsertLen()
226 static BROTLI_INLINE void EmitCopyLen(size_t copylen, in EmitCopyLen()
258 static BROTLI_INLINE void EmitCopyLenLastDistance(size_t copylen, in EmitCopyLenLastDistance()
301 static BROTLI_INLINE void EmitDistance(size_t distance, in EmitDistance()
316 static BROTLI_INLINE void EmitLiterals(const uint8_t* input, const size_t len, in EmitLiterals()
393 static BROTLI_INLINE BROTLI_BOOL ShouldUseUncompressedMode( in ShouldUseUncompressedMode()
[all …]
Dcluster.c22 static BROTLI_INLINE BROTLI_BOOL HistogramPairIsLess( in HistogramPairIsLess()
31 static BROTLI_INLINE double ClusterCostDiff(size_t size_a, size_t size_b) { in ClusterCostDiff()
Dcompress_fragment_two_pass.c42 static BROTLI_INLINE uint32_t Hash(const uint8_t* p, in Hash()
49 static BROTLI_INLINE uint32_t HashBytesAtOffset(uint64_t v, size_t offset, in HashBytesAtOffset()
58 static BROTLI_INLINE BROTLI_BOOL IsMatch(const uint8_t* p1, const uint8_t* p2, in IsMatch()
118 static BROTLI_INLINE void EmitInsertLen( in EmitInsertLen()
148 static BROTLI_INLINE void EmitCopyLen(size_t copylen, uint32_t** commands) { in EmitCopyLen()
171 static BROTLI_INLINE void EmitCopyLenLastDistance( in EmitCopyLenLastDistance()
210 static BROTLI_INLINE void EmitDistance(uint32_t distance, uint32_t** commands) { in EmitDistance()
239 static BROTLI_INLINE void CreateCommands(const uint8_t* input, in CreateCommands()
557 static BROTLI_INLINE void BrotliCompressFragmentTwoPassImpl( in BrotliCompressFragmentTwoPassImpl()
Dbit_cost.h21 static BROTLI_INLINE double ShannonEntropy( in ShannonEntropy()
44 static BROTLI_INLINE double BitsEntropy( in BitsEntropy()
Dwrite_bits.h36 static BROTLI_INLINE void BrotliWriteBits(size_t n_bits, in BrotliWriteBits()
74 static BROTLI_INLINE void BrotliWriteBitsPrepareStorage( in BrotliWriteBitsPrepareStorage()
Dfind_match_length.h22 static BROTLI_INLINE size_t FindMatchLengthWithLimit(const uint8_t* s1, in FindMatchLengthWithLimit()
52 static BROTLI_INLINE size_t FindMatchLengthWithLimit(const uint8_t* s1,
Dbackward_references_hq.c50 static BROTLI_INLINE uint32_t ZopfliNodeCopyLength(const ZopfliNode* self) { in ZopfliNodeCopyLength()
54 static BROTLI_INLINE uint32_t ZopfliNodeLengthCode(const ZopfliNode* self) { in ZopfliNodeLengthCode()
59 static BROTLI_INLINE uint32_t ZopfliNodeCopyDistance(const ZopfliNode* self) { in ZopfliNodeCopyDistance()
63 static BROTLI_INLINE uint32_t ZopfliNodeDistanceCode(const ZopfliNode* self) { in ZopfliNodeDistanceCode()
70 static BROTLI_INLINE uint32_t ZopfliNodeCommandLength(const ZopfliNode* self) { in ZopfliNodeCommandLength()
227 static BROTLI_INLINE float ZopfliCostModelGetCommandCost( in ZopfliCostModelGetCommandCost()
232 static BROTLI_INLINE float ZopfliCostModelGetDistanceCost( in ZopfliCostModelGetDistanceCost()
237 static BROTLI_INLINE float ZopfliCostModelGetLiteralCosts( in ZopfliCostModelGetLiteralCosts()
242 static BROTLI_INLINE float ZopfliCostModelGetMinCostCmd( in ZopfliCostModelGetMinCostCmd()
250 static BROTLI_INLINE void UpdateZopfliNode(ZopfliNode* nodes, size_t pos, in UpdateZopfliNode()
[all …]

12