libicuid  1.4.1
features.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2016, Kurt Cancemi ([email protected])
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 typedef struct {
18  uint8_t bit;
21 
22 void set_feature_bits(cpuid_data_t *data, const cpuid_feature_map_t *feature,
23  const unsigned int array_size, const uint32_t reg);
24 void set_common_features(const cpuid_raw_data_t *raw, cpuid_data_t *data);
25 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)
Definition: features.c:25
void set_common_features(const cpuid_raw_data_t *raw, cpuid_data_t *data)
Definition: features.c:183
void set_common_xfeatures(cpuid_data_t *data, const uint64_t xcr0)
Definition: features.c:264
Definition: icuid.h:343
Definition: icuid.h:317
cpuid_feature_t
CPU feature bits.
Definition: icuid.h:97
uint8_t bit
Definition: features.h:18
Definition: features.h:17
cpuid_feature_t feature
Definition: features.h:19