github.com/arthurnavah/cpuid/v2@v2.0.14/featureid_string.go (about) 1 // Code generated by "stringer -type=FeatureID,Vendor"; DO NOT EDIT. 2 3 package cpuid 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[ADX-1] 12 _ = x[AESNI-2] 13 _ = x[AMD3DNOW-3] 14 _ = x[AMD3DNOWEXT-4] 15 _ = x[AMXBF16-5] 16 _ = x[AMXINT8-6] 17 _ = x[AMXTILE-7] 18 _ = x[AVX-8] 19 _ = x[AVX2-9] 20 _ = x[AVX512BF16-10] 21 _ = x[AVX512BITALG-11] 22 _ = x[AVX512BW-12] 23 _ = x[AVX512CD-13] 24 _ = x[AVX512DQ-14] 25 _ = x[AVX512ER-15] 26 _ = x[AVX512F-16] 27 _ = x[AVX512FP16-17] 28 _ = x[AVX512IFMA-18] 29 _ = x[AVX512PF-19] 30 _ = x[AVX512VBMI-20] 31 _ = x[AVX512VBMI2-21] 32 _ = x[AVX512VL-22] 33 _ = x[AVX512VNNI-23] 34 _ = x[AVX512VP2INTERSECT-24] 35 _ = x[AVX512VPOPCNTDQ-25] 36 _ = x[AVXSLOW-26] 37 _ = x[BMI1-27] 38 _ = x[BMI2-28] 39 _ = x[CETIBT-29] 40 _ = x[CETSS-30] 41 _ = x[CLDEMOTE-31] 42 _ = x[CLMUL-32] 43 _ = x[CLZERO-33] 44 _ = x[CMOV-34] 45 _ = x[CMPXCHG8-35] 46 _ = x[CPBOOST-36] 47 _ = x[CX16-37] 48 _ = x[ENQCMD-38] 49 _ = x[ERMS-39] 50 _ = x[F16C-40] 51 _ = x[FMA3-41] 52 _ = x[FMA4-42] 53 _ = x[FXSR-43] 54 _ = x[FXSROPT-44] 55 _ = x[GFNI-45] 56 _ = x[HLE-46] 57 _ = x[HTT-47] 58 _ = x[HWA-48] 59 _ = x[HYPERVISOR-49] 60 _ = x[IBPB-50] 61 _ = x[IBS-51] 62 _ = x[IBSBRNTRGT-52] 63 _ = x[IBSFETCHSAM-53] 64 _ = x[IBSFFV-54] 65 _ = x[IBSOPCNT-55] 66 _ = x[IBSOPCNTEXT-56] 67 _ = x[IBSOPSAM-57] 68 _ = x[IBSRDWROPCNT-58] 69 _ = x[IBSRIPINVALIDCHK-59] 70 _ = x[INT_WBINVD-60] 71 _ = x[INVLPGB-61] 72 _ = x[LAHF-62] 73 _ = x[LZCNT-63] 74 _ = x[MCAOVERFLOW-64] 75 _ = x[MCOMMIT-65] 76 _ = x[MMX-66] 77 _ = x[MMXEXT-67] 78 _ = x[MOVBE-68] 79 _ = x[MOVDIR64B-69] 80 _ = x[MOVDIRI-70] 81 _ = x[MPX-71] 82 _ = x[MSRIRC-72] 83 _ = x[NX-73] 84 _ = x[OSXSAVE-74] 85 _ = x[POPCNT-75] 86 _ = x[RDPRU-76] 87 _ = x[RDRAND-77] 88 _ = x[RDSEED-78] 89 _ = x[RDTSCP-79] 90 _ = x[RTM-80] 91 _ = x[RTM_ALWAYS_ABORT-81] 92 _ = x[SCE-82] 93 _ = x[SERIALIZE-83] 94 _ = x[SGX-84] 95 _ = x[SGXLC-85] 96 _ = x[SHA-86] 97 _ = x[SSE-87] 98 _ = x[SSE2-88] 99 _ = x[SSE3-89] 100 _ = x[SSE4-90] 101 _ = x[SSE42-91] 102 _ = x[SSE4A-92] 103 _ = x[SSSE3-93] 104 _ = x[STIBP-94] 105 _ = x[SUCCOR-95] 106 _ = x[TBM-96] 107 _ = x[TSXLDTRK-97] 108 _ = x[VAES-98] 109 _ = x[VMX-99] 110 _ = x[VPCLMULQDQ-100] 111 _ = x[WAITPKG-101] 112 _ = x[WBNOINVD-102] 113 _ = x[X87-103] 114 _ = x[XOP-104] 115 _ = x[XSAVE-105] 116 _ = x[AESARM-106] 117 _ = x[ARMCPUID-107] 118 _ = x[ASIMD-108] 119 _ = x[ASIMDDP-109] 120 _ = x[ASIMDHP-110] 121 _ = x[ASIMDRDM-111] 122 _ = x[ATOMICS-112] 123 _ = x[CRC32-113] 124 _ = x[DCPOP-114] 125 _ = x[EVTSTRM-115] 126 _ = x[FCMA-116] 127 _ = x[FP-117] 128 _ = x[FPHP-118] 129 _ = x[GPA-119] 130 _ = x[JSCVT-120] 131 _ = x[LRCPC-121] 132 _ = x[PMULL-122] 133 _ = x[SHA1-123] 134 _ = x[SHA2-124] 135 _ = x[SHA3-125] 136 _ = x[SHA512-126] 137 _ = x[SM3-127] 138 _ = x[SM4-128] 139 _ = x[SVE-129] 140 _ = x[lastID-130] 141 _ = x[firstID-0] 142 } 143 144 const _FeatureID_name = "firstIDADXAESNIAMD3DNOWAMD3DNOWEXTAMXBF16AMXINT8AMXTILEAVXAVX2AVX512BF16AVX512BITALGAVX512BWAVX512CDAVX512DQAVX512ERAVX512FAVX512FP16AVX512IFMAAVX512PFAVX512VBMIAVX512VBMI2AVX512VLAVX512VNNIAVX512VP2INTERSECTAVX512VPOPCNTDQAVXSLOWBMI1BMI2CETIBTCETSSCLDEMOTECLMULCLZEROCMOVCMPXCHG8CPBOOSTCX16ENQCMDERMSF16CFMA3FMA4FXSRFXSROPTGFNIHLEHTTHWAHYPERVISORIBPBIBSIBSBRNTRGTIBSFETCHSAMIBSFFVIBSOPCNTIBSOPCNTEXTIBSOPSAMIBSRDWROPCNTIBSRIPINVALIDCHKINT_WBINVDINVLPGBLAHFLZCNTMCAOVERFLOWMCOMMITMMXMMXEXTMOVBEMOVDIR64BMOVDIRIMPXMSRIRCNXOSXSAVEPOPCNTRDPRURDRANDRDSEEDRDTSCPRTMRTM_ALWAYS_ABORTSCESERIALIZESGXSGXLCSHASSESSE2SSE3SSE4SSE42SSE4ASSSE3STIBPSUCCORTBMTSXLDTRKVAESVMXVPCLMULQDQWAITPKGWBNOINVDX87XOPXSAVEAESARMARMCPUIDASIMDASIMDDPASIMDHPASIMDRDMATOMICSCRC32DCPOPEVTSTRMFCMAFPFPHPGPAJSCVTLRCPCPMULLSHA1SHA2SHA3SHA512SM3SM4SVElastID" 145 146 var _FeatureID_index = [...]uint16{0, 7, 10, 15, 23, 34, 41, 48, 55, 58, 62, 72, 84, 92, 100, 108, 116, 123, 133, 143, 151, 161, 172, 180, 190, 208, 223, 230, 234, 238, 244, 249, 257, 262, 268, 272, 280, 287, 291, 297, 301, 305, 309, 313, 317, 324, 328, 331, 334, 337, 347, 351, 354, 364, 375, 381, 389, 400, 408, 420, 436, 446, 453, 457, 462, 473, 480, 483, 489, 494, 503, 510, 513, 519, 521, 528, 534, 539, 545, 551, 557, 560, 576, 579, 588, 591, 596, 599, 602, 606, 610, 614, 619, 624, 629, 634, 640, 643, 651, 655, 658, 668, 675, 683, 686, 689, 694, 700, 708, 713, 720, 727, 735, 742, 747, 752, 759, 763, 765, 769, 772, 777, 782, 787, 791, 795, 799, 805, 808, 811, 814, 820} 147 148 func (i FeatureID) String() string { 149 if i < 0 || i >= FeatureID(len(_FeatureID_index)-1) { 150 return "FeatureID(" + strconv.FormatInt(int64(i), 10) + ")" 151 } 152 return _FeatureID_name[_FeatureID_index[i]:_FeatureID_index[i+1]] 153 } 154 func _() { 155 // An "invalid array index" compiler error signifies that the constant values have changed. 156 // Re-run the stringer command to generate them again. 157 var x [1]struct{} 158 _ = x[VendorUnknown-0] 159 _ = x[Intel-1] 160 _ = x[AMD-2] 161 _ = x[VIA-3] 162 _ = x[Transmeta-4] 163 _ = x[NSC-5] 164 _ = x[KVM-6] 165 _ = x[MSVM-7] 166 _ = x[VMware-8] 167 _ = x[XenHVM-9] 168 _ = x[Bhyve-10] 169 _ = x[Hygon-11] 170 _ = x[SiS-12] 171 _ = x[RDC-13] 172 _ = x[Ampere-14] 173 _ = x[ARM-15] 174 _ = x[Broadcom-16] 175 _ = x[Cavium-17] 176 _ = x[DEC-18] 177 _ = x[Fujitsu-19] 178 _ = x[Infineon-20] 179 _ = x[Motorola-21] 180 _ = x[NVIDIA-22] 181 _ = x[AMCC-23] 182 _ = x[Qualcomm-24] 183 _ = x[Marvell-25] 184 _ = x[lastVendor-26] 185 } 186 187 const _Vendor_name = "VendorUnknownIntelAMDVIATransmetaNSCKVMMSVMVMwareXenHVMBhyveHygonSiSRDCAmpereARMBroadcomCaviumDECFujitsuInfineonMotorolaNVIDIAAMCCQualcommMarvelllastVendor" 188 189 var _Vendor_index = [...]uint8{0, 13, 18, 21, 24, 33, 36, 39, 43, 49, 55, 60, 65, 68, 71, 77, 80, 88, 94, 97, 104, 112, 120, 126, 130, 138, 145, 155} 190 191 func (i Vendor) String() string { 192 if i < 0 || i >= Vendor(len(_Vendor_index)-1) { 193 return "Vendor(" + strconv.FormatInt(int64(i), 10) + ")" 194 } 195 return _Vendor_name[_Vendor_index[i]:_Vendor_index[i+1]] 196 }