<commit_before>/** @file
  Register CPU Features Library to register and manage CPU features.

  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
  This program and the accompanying materials
  are licensed and made available under the terms and conditions of the BSD License
  which accompanies this distribution.  The full text of the license may be found at
  http://opensource.org/licenses/bsd-license.php

  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

**/

#ifndef __REGISTER_CPU_FEATURES_LIB_H__
#define __REGISTER_CPU_FEATURES_LIB_H__

#include <AcpiCpuData.h>
#include <Register/Cpuid.h>
#include <Protocol/MpService.h>

///
/// Defines used to identify a CPU feature.  The lower 16-bits are used to
/// identify a unique CPU feature and the value represents a bit number in
/// a bit mask.  The upper 16-bits are bit mask values that are used as
/// modifiers of a CPU feature.  When used in a list, the define value
/// CPU_FEATURE_END is used to terminate a list of CPU feature values.
/// @{
#define CPU_FEATURE_AESNI                           0
#define CPU_FEATURE_TURBO_MODE                      1
#define CPU_FEATURE_MWAIT                           2
#define CPU_FEATURE_ACPI                            3
#define CPU_FEATURE_EIST                            4
#define CPU_FEATURE_XD                              5
#define CPU_FEATURE_FASTSTRINGS                     6
#define CPU_FEATURE_VMX                             7
#define CPU_FEATURE_SMX                             8
#define CPU_FEATURE_SENTER                          9
#define CPU_FEATURE_LOCK_FEATURE_CONTROL_REGISTER   10
#define CPU_FEATURE_LIMIT_CPUID_MAX_VAL             11
#define CPU_FEATURE_MCE                             12
#define CPU_FEATURE_MCA                             13
#define CPU_FEATURE_MCG_CTL                         14
#define CPU_FEATURE_PENDING_BREAK                   15
#define CPU_FEATURE_C1E                             16
#define CPU_FEATURE_C1_AUTO_DEMOTION                17
#define CPU_FEATURE_C3_AUTO_DEMOTION                18
#define CPU_FEATURE_C1_UNDEMOTION                   19
#define CPU_FEATURE_C3_UNDEMOTION                   20
#define CPU_FEATURE_C_STATE                         21
#define CPU_FEATURE_TM                              22<commit_msg>UefiCpuPkg: Remove deprecated CPU feature.<commit_after>/** @file
  Register CPU Features Library to register and manage CPU features.

  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
  This program and the accompanying materials
  are licensed and made available under the terms and conditions of the BSD License
  which accompanies this distribution.  The full text of the license may be found at
  http://opensource.org/licenses/bsd-license.php

  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

**/

#ifndef __REGISTER_CPU_FEATURES_LIB_H__
#define __REGISTER_CPU_FEATURES_LIB_H__

#include <AcpiCpuData.h>
#include <Register/Cpuid.h>
#include <Protocol/MpService.h>

///
/// Defines used to identify a CPU feature.  The lower 16-bits are used to
/// identify a unique CPU feature and the value represents a bit number in
/// a bit mask.  The upper 16-bits are bit mask values that are used as
/// modifiers of a CPU feature.  When used in a list, the define value
/// CPU_FEATURE_END is used to terminate a list of CPU feature values.
/// @{
#define CPU_FEATURE_AESNI                           0
#define CPU_FEATURE_TURBO_MODE                      1
#define CPU_FEATURE_MWAIT                           2
#define CPU_FEATURE_ACPI                            3
#define CPU_FEATURE_EIST                            4
#define CPU_FEATURE_XD                              5
#define CPU_FEATURE_FASTSTRINGS                     6
#define CPU_FEATURE_VMX                             7
#define CPU_FEATURE_SMX                             8
#define CPU_FEATURE_LOCK_FEATURE_CONTROL_REGISTER   10
#define CPU_FEATURE_LIMIT_CPUID_MAX_VAL             11
#define CPU_FEATURE_MCE                             12
#define CPU_FEATURE_MCA                             13
#define CPU_FEATURE_MCG_CTL                         14
#define CPU_FEATURE_PENDING_BREAK                   15
#define CPU_FEATURE_C1E                             16
#define CPU_FEATURE_C1_AUTO_DEMOTION                17
#define CPU_FEATURE_C3_AUTO_DEMOTION                18
#define CPU_FEATURE_C1_UNDEMOTION                   19
#define CPU_FEATURE_C3_UNDEMOTION                   20
#define CPU_FEATURE_C_STATE                         21
#define CPU_FEATURE_TM                              22
{'fraction_non_alphanumeric': 0.042656020172305104, 'fraction_numerical': 0.020382433284303426, 'mean_word_length': 1.949194547707559, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2974735', 'n_tokens_mistral': 1335, 'n_tokens_neox': 1320, 'n_words': 444}