mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-06 13:41:29 +00:00
mixer-tools populates the optimized mask based on a matrix of values where the mask includes both the optimization of the file on the line but also the combined masks of all matching files. This means a file mask needs to be translaed from the mask to what its actual optimization level is and what other optimizations levels are available to be useful. This change adds 2 new elements to the file struct. The opt_level stores a files optimization level and available_levels stores a bitwise or of the different optimization levels that can be found in the file list for the same file. For instance an AVX2_3 mask indicates the file is AVX2 with both SSE and AVX512 files also available (SSE | AVX2 | AVX512 == 3). Signed-off-by: William Douglas <william.douglas@intel.com>