libicuid  1.4.1
Functions
features.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <icuid/icuid.h>
#include "internal.h"
#include "features.h"

Functions

void set_feature_bits (cpuid_data_t *data, const cpuid_feature_map_t *feature, const unsigned int array_size, const uint32_t reg)
 
const char * cpu_feature_str (cpuid_feature_t feature)
 Returns the short form of the CPU feature flag. More...
 
void set_common_features (const cpuid_raw_data_t *raw, cpuid_data_t *data)
 
void set_common_xfeatures (cpuid_data_t *data, const uint64_t xcr0)
 

Function Documentation

const char* cpu_feature_str ( cpuid_feature_t  feature)

Returns the short form of the CPU feature flag.

Parameters
feature[in] - the feature, whose short form is desired
Returns
a (const char) string of the CPU feature flag; e.g. "avx"
void set_common_features ( const cpuid_raw_data_t raw,
cpuid_data_t data 
)
void set_common_xfeatures ( cpuid_data_t data,
const uint64_t  xcr0 
)
void set_feature_bits ( cpuid_data_t data,
const cpuid_feature_map_t feature,
const unsigned int  array_size,
const uint32_t  reg 
)