extract_instruction_sets

Function extract_instruction_sets 

Source
pub fn extract_instruction_sets(data: &[u8]) -> Result<Vec<String>>
Expand description

Extracts a sorted, deduplicated list of CPU instruction set names (e.g. "SSE2", "AVX", "AVX2", "AVX512F") found within the given object file or archive file data.

ยงErrors

Returns an error if the input data is neither a valid object file nor a valid archive file.