liblzma: CRC CLMUL: Omit is_arch_extension_supported() when not needed
[xz/debian.git] / src / liblzma / common / easy_decoder_memusage.c
blob0c76f10033b62ac0ea68670747433f69e20c3ef0
1 // SPDX-License-Identifier: 0BSD
3 ///////////////////////////////////////////////////////////////////////////////
4 //
5 /// \file easy_decoder_memusage.c
6 /// \brief Decoder memory usage calculation to match easy encoder presets
7 //
8 // Author: Lasse Collin
9 //
10 ///////////////////////////////////////////////////////////////////////////////
12 #include "easy_preset.h"
15 extern LZMA_API(uint64_t)
16 lzma_easy_decoder_memusage(uint32_t preset)
18 lzma_options_easy opt_easy;
19 if (lzma_easy_preset(&opt_easy, preset))
20 return UINT32_MAX;
22 return lzma_raw_decoder_memusage(opt_easy.filters);