mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	And finally Integrate vogl changes.
This commit is contained in:
		| @@ -1,4 +1,3 @@ | ||||
| #include "miniz_tinfl.h" | ||||
|  | ||||
| // ------------------- Low-level Decompression (completely independent from all compression API's) | ||||
|  | ||||
| @@ -29,15 +28,15 @@ | ||||
|     MZ_MACRO_END | ||||
| #define TINFL_CR_FINISH } | ||||
|  | ||||
| #define TINFL_GET_BYTE(state_index, c)                                                                                                                           \ | ||||
|     do                                                                                                                                                           \ | ||||
|     {                                                                                                                                                            \ | ||||
|         while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \ | ||||
|         {                                                                                                                                                        \ | ||||
|             TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \ | ||||
|         }                                                                                                                                                        \ | ||||
|         c = *pIn_buf_cur++;                                                                                                                                      \ | ||||
|     }                                                                                                                                                            \ | ||||
| #define TINFL_GET_BYTE(state_index, c)                                                                                                                          \ | ||||
|     do                                                                                                                                                          \ | ||||
|     {                                                                                                                                                           \ | ||||
|         while (pIn_buf_cur >= pIn_buf_end)                                                                                                                      \ | ||||
|         {                                                                                                                                                       \ | ||||
|             TINFL_CR_RETURN(state_index, (decomp_flags &TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \ | ||||
|         }                                                                                                                                                       \ | ||||
|         c = *pIn_buf_cur++;                                                                                                                                     \ | ||||
|     }                                                                                                                                                           \ | ||||
|     MZ_MACRO_END | ||||
|  | ||||
| #define TINFL_NEED_BITS(state_index, n)                \ | ||||
| @@ -155,7 +154,7 @@ tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_buf_nex | ||||
|     tinfl_bit_buf_t bit_buf; | ||||
|     const mz_uint8 *pIn_buf_cur = pIn_buf_next, *const pIn_buf_end = pIn_buf_next + *pIn_buf_size; | ||||
|     mz_uint8 *pOut_buf_cur = pOut_buf_next, *const pOut_buf_end = pOut_buf_next + *pOut_buf_size; | ||||
|     size_t out_buf_size_mask = (decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF) ? (size_t)-1 : ((pOut_buf_next - pOut_buf_start) + *pOut_buf_size) - 1, dist_from_out_buf_start; | ||||
|     size_t out_buf_size_mask = (decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF) ? (size_t) - 1 : ((pOut_buf_next - pOut_buf_start) + *pOut_buf_size) - 1, dist_from_out_buf_start; | ||||
|  | ||||
|     // Ensure the output buffer's size is a power of 2, unless the output buffer is large enough to hold the entire output file (in which case it doesn't matter). | ||||
|     if (((out_buf_size_mask + 1) & out_buf_size_mask) || (pOut_buf_next < pOut_buf_start)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user