liblzma: CRC CLMUL: Omit is_arch_extension_supported() when not needed
[xz/debian.git] / src / liblzma / common / easy_preset.c
blob7908a2bb73c8956b17fa84e469f25cd507561b69
1 // SPDX-License-Identifier: 0BSD
3 ///////////////////////////////////////////////////////////////////////////////
4 //
5 /// \file easy_preset.c
6 /// \brief Preset handling for easy encoder and decoder
7 //
8 // Author: Lasse Collin
9 //
10 ///////////////////////////////////////////////////////////////////////////////
12 #include "easy_preset.h"
15 extern bool
16 lzma_easy_preset(lzma_options_easy *opt_easy, uint32_t preset)
18 if (lzma_lzma_preset(&opt_easy->opt_lzma, preset))
19 return true;
21 opt_easy->filters[0].id = LZMA_FILTER_LZMA2;
22 opt_easy->filters[0].options = &opt_easy->opt_lzma;
23 opt_easy->filters[1].id = LZMA_VLI_UNKNOWN;
25 return false;