git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/cpuinfo/featureid_string.go (about) 1 // Code generated by "stringer -type=FeatureID,Vendor"; DO NOT EDIT. 2 3 package cpuinfo 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[AMXFP16-6] 17 _ = x[AMXINT8-7] 18 _ = x[AMXTILE-8] 19 _ = x[AVX-9] 20 _ = x[AVX2-10] 21 _ = x[AVX512BF16-11] 22 _ = x[AVX512BITALG-12] 23 _ = x[AVX512BW-13] 24 _ = x[AVX512CD-14] 25 _ = x[AVX512DQ-15] 26 _ = x[AVX512ER-16] 27 _ = x[AVX512F-17] 28 _ = x[AVX512FP16-18] 29 _ = x[AVX512IFMA-19] 30 _ = x[AVX512PF-20] 31 _ = x[AVX512VBMI-21] 32 _ = x[AVX512VBMI2-22] 33 _ = x[AVX512VL-23] 34 _ = x[AVX512VNNI-24] 35 _ = x[AVX512VP2INTERSECT-25] 36 _ = x[AVX512VPOPCNTDQ-26] 37 _ = x[AVXIFMA-27] 38 _ = x[AVXNECONVERT-28] 39 _ = x[AVXSLOW-29] 40 _ = x[AVXVNNI-30] 41 _ = x[AVXVNNIINT8-31] 42 _ = x[BHI_CTRL-32] 43 _ = x[BMI1-33] 44 _ = x[BMI2-34] 45 _ = x[CETIBT-35] 46 _ = x[CETSS-36] 47 _ = x[CLDEMOTE-37] 48 _ = x[CLMUL-38] 49 _ = x[CLZERO-39] 50 _ = x[CMOV-40] 51 _ = x[CMPCCXADD-41] 52 _ = x[CMPSB_SCADBS_SHORT-42] 53 _ = x[CMPXCHG8-43] 54 _ = x[CPBOOST-44] 55 _ = x[CPPC-45] 56 _ = x[CX16-46] 57 _ = x[EFER_LMSLE_UNS-47] 58 _ = x[ENQCMD-48] 59 _ = x[ERMS-49] 60 _ = x[F16C-50] 61 _ = x[FLUSH_L1D-51] 62 _ = x[FMA3-52] 63 _ = x[FMA4-53] 64 _ = x[FP128-54] 65 _ = x[FP256-55] 66 _ = x[FSRM-56] 67 _ = x[FXSR-57] 68 _ = x[FXSROPT-58] 69 _ = x[GFNI-59] 70 _ = x[HLE-60] 71 _ = x[HRESET-61] 72 _ = x[HTT-62] 73 _ = x[HWA-63] 74 _ = x[HYBRID_CPU-64] 75 _ = x[HYPERVISOR-65] 76 _ = x[IA32_ARCH_CAP-66] 77 _ = x[IA32_CORE_CAP-67] 78 _ = x[IBPB-68] 79 _ = x[IBRS-69] 80 _ = x[IBRS_PREFERRED-70] 81 _ = x[IBRS_PROVIDES_SMP-71] 82 _ = x[IBS-72] 83 _ = x[IBSBRNTRGT-73] 84 _ = x[IBSFETCHSAM-74] 85 _ = x[IBSFFV-75] 86 _ = x[IBSOPCNT-76] 87 _ = x[IBSOPCNTEXT-77] 88 _ = x[IBSOPSAM-78] 89 _ = x[IBSRDWROPCNT-79] 90 _ = x[IBSRIPINVALIDCHK-80] 91 _ = x[IBS_FETCH_CTLX-81] 92 _ = x[IBS_OPDATA4-82] 93 _ = x[IBS_OPFUSE-83] 94 _ = x[IBS_PREVENTHOST-84] 95 _ = x[IBS_ZEN4-85] 96 _ = x[IDPRED_CTRL-86] 97 _ = x[INT_WBINVD-87] 98 _ = x[INVLPGB-88] 99 _ = x[LAHF-89] 100 _ = x[LAM-90] 101 _ = x[LBRVIRT-91] 102 _ = x[LZCNT-92] 103 _ = x[MCAOVERFLOW-93] 104 _ = x[MCDT_NO-94] 105 _ = x[MCOMMIT-95] 106 _ = x[MD_CLEAR-96] 107 _ = x[MMX-97] 108 _ = x[MMXEXT-98] 109 _ = x[MOVBE-99] 110 _ = x[MOVDIR64B-100] 111 _ = x[MOVDIRI-101] 112 _ = x[MOVSB_ZL-102] 113 _ = x[MOVU-103] 114 _ = x[MPX-104] 115 _ = x[MSRIRC-105] 116 _ = x[MSRLIST-106] 117 _ = x[MSR_PAGEFLUSH-107] 118 _ = x[NRIPS-108] 119 _ = x[NX-109] 120 _ = x[OSXSAVE-110] 121 _ = x[PCONFIG-111] 122 _ = x[POPCNT-112] 123 _ = x[PPIN-113] 124 _ = x[PREFETCHI-114] 125 _ = x[PSFD-115] 126 _ = x[RDPRU-116] 127 _ = x[RDRAND-117] 128 _ = x[RDSEED-118] 129 _ = x[RDTSCP-119] 130 _ = x[RRSBA_CTRL-120] 131 _ = x[RTM-121] 132 _ = x[RTM_ALWAYS_ABORT-122] 133 _ = x[SERIALIZE-123] 134 _ = x[SEV-124] 135 _ = x[SEV_64BIT-125] 136 _ = x[SEV_ALTERNATIVE-126] 137 _ = x[SEV_DEBUGSWAP-127] 138 _ = x[SEV_ES-128] 139 _ = x[SEV_RESTRICTED-129] 140 _ = x[SEV_SNP-130] 141 _ = x[SGX-131] 142 _ = x[SGXLC-132] 143 _ = x[SHA-133] 144 _ = x[SME-134] 145 _ = x[SME_COHERENT-135] 146 _ = x[SPEC_CTRL_SSBD-136] 147 _ = x[SRBDS_CTRL-137] 148 _ = x[SSE-138] 149 _ = x[SSE2-139] 150 _ = x[SSE3-140] 151 _ = x[SSE4-141] 152 _ = x[SSE42-142] 153 _ = x[SSE4A-143] 154 _ = x[SSSE3-144] 155 _ = x[STIBP-145] 156 _ = x[STIBP_ALWAYSON-146] 157 _ = x[STOSB_SHORT-147] 158 _ = x[SUCCOR-148] 159 _ = x[SVM-149] 160 _ = x[SVMDA-150] 161 _ = x[SVMFBASID-151] 162 _ = x[SVML-152] 163 _ = x[SVMNP-153] 164 _ = x[SVMPF-154] 165 _ = x[SVMPFT-155] 166 _ = x[SYSCALL-156] 167 _ = x[SYSEE-157] 168 _ = x[TBM-158] 169 _ = x[TLB_FLUSH_NESTED-159] 170 _ = x[TME-160] 171 _ = x[TOPEXT-161] 172 _ = x[TSCRATEMSR-162] 173 _ = x[TSXLDTRK-163] 174 _ = x[VAES-164] 175 _ = x[VMCBCLEAN-165] 176 _ = x[VMPL-166] 177 _ = x[VMSA_REGPROT-167] 178 _ = x[VMX-168] 179 _ = x[VPCLMULQDQ-169] 180 _ = x[VTE-170] 181 _ = x[WAITPKG-171] 182 _ = x[WBNOINVD-172] 183 _ = x[WRMSRNS-173] 184 _ = x[X87-174] 185 _ = x[XGETBV1-175] 186 _ = x[XOP-176] 187 _ = x[XSAVE-177] 188 _ = x[XSAVEC-178] 189 _ = x[XSAVEOPT-179] 190 _ = x[XSAVES-180] 191 _ = x[AESARM-181] 192 _ = x[ARMCPUID-182] 193 _ = x[ASIMD-183] 194 _ = x[ASIMDDP-184] 195 _ = x[ASIMDHP-185] 196 _ = x[ASIMDRDM-186] 197 _ = x[ATOMICS-187] 198 _ = x[CRC32-188] 199 _ = x[DCPOP-189] 200 _ = x[EVTSTRM-190] 201 _ = x[FCMA-191] 202 _ = x[FP-192] 203 _ = x[FPHP-193] 204 _ = x[GPA-194] 205 _ = x[JSCVT-195] 206 _ = x[LRCPC-196] 207 _ = x[PMULL-197] 208 _ = x[SHA1-198] 209 _ = x[SHA2-199] 210 _ = x[SHA3-200] 211 _ = x[SHA512-201] 212 _ = x[SM3-202] 213 _ = x[SM4-203] 214 _ = x[SVE-204] 215 _ = x[lastID-205] 216 _ = x[firstID-0] 217 } 218 219 const _FeatureID_name = "firstIDADXAESNIAMD3DNOWAMD3DNOWEXTAMXBF16AMXFP16AMXINT8AMXTILEAVXAVX2AVX512BF16AVX512BITALGAVX512BWAVX512CDAVX512DQAVX512ERAVX512FAVX512FP16AVX512IFMAAVX512PFAVX512VBMIAVX512VBMI2AVX512VLAVX512VNNIAVX512VP2INTERSECTAVX512VPOPCNTDQAVXIFMAAVXNECONVERTAVXSLOWAVXVNNIAVXVNNIINT8BHI_CTRLBMI1BMI2CETIBTCETSSCLDEMOTECLMULCLZEROCMOVCMPCCXADDCMPSB_SCADBS_SHORTCMPXCHG8CPBOOSTCPPCCX16EFER_LMSLE_UNSENQCMDERMSF16CFLUSH_L1DFMA3FMA4FP128FP256FSRMFXSRFXSROPTGFNIHLEHRESETHTTHWAHYBRID_CPUHYPERVISORIA32_ARCH_CAPIA32_CORE_CAPIBPBIBRSIBRS_PREFERREDIBRS_PROVIDES_SMPIBSIBSBRNTRGTIBSFETCHSAMIBSFFVIBSOPCNTIBSOPCNTEXTIBSOPSAMIBSRDWROPCNTIBSRIPINVALIDCHKIBS_FETCH_CTLXIBS_OPDATA4IBS_OPFUSEIBS_PREVENTHOSTIBS_ZEN4IDPRED_CTRLINT_WBINVDINVLPGBLAHFLAMLBRVIRTLZCNTMCAOVERFLOWMCDT_NOMCOMMITMD_CLEARMMXMMXEXTMOVBEMOVDIR64BMOVDIRIMOVSB_ZLMOVUMPXMSRIRCMSRLISTMSR_PAGEFLUSHNRIPSNXOSXSAVEPCONFIGPOPCNTPPINPREFETCHIPSFDRDPRURDRANDRDSEEDRDTSCPRRSBA_CTRLRTMRTM_ALWAYS_ABORTSERIALIZESEVSEV_64BITSEV_ALTERNATIVESEV_DEBUGSWAPSEV_ESSEV_RESTRICTEDSEV_SNPSGXSGXLCSHASMESME_COHERENTSPEC_CTRL_SSBDSRBDS_CTRLSSESSE2SSE3SSE4SSE42SSE4ASSSE3STIBPSTIBP_ALWAYSONSTOSB_SHORTSUCCORSVMSVMDASVMFBASIDSVMLSVMNPSVMPFSVMPFTSYSCALLSYSEETBMTLB_FLUSH_NESTEDTMETOPEXTTSCRATEMSRTSXLDTRKVAESVMCBCLEANVMPLVMSA_REGPROTVMXVPCLMULQDQVTEWAITPKGWBNOINVDWRMSRNSX87XGETBV1XOPXSAVEXSAVECXSAVEOPTXSAVESAESARMARMCPUIDASIMDASIMDDPASIMDHPASIMDRDMATOMICSCRC32DCPOPEVTSTRMFCMAFPFPHPGPAJSCVTLRCPCPMULLSHA1SHA2SHA3SHA512SM3SM4SVElastID" 220 221 var _FeatureID_index = [...]uint16{0, 7, 10, 15, 23, 34, 41, 48, 55, 62, 65, 69, 79, 91, 99, 107, 115, 123, 130, 140, 150, 158, 168, 179, 187, 197, 215, 230, 237, 249, 256, 263, 274, 282, 286, 290, 296, 301, 309, 314, 320, 324, 333, 351, 359, 366, 370, 374, 388, 394, 398, 402, 411, 415, 419, 424, 429, 433, 437, 444, 448, 451, 457, 460, 463, 473, 483, 496, 509, 513, 517, 531, 548, 551, 561, 572, 578, 586, 597, 605, 617, 633, 647, 658, 668, 683, 691, 702, 712, 719, 723, 726, 733, 738, 749, 756, 763, 771, 774, 780, 785, 794, 801, 809, 813, 816, 822, 829, 842, 847, 849, 856, 863, 869, 873, 882, 886, 891, 897, 903, 909, 919, 922, 938, 947, 950, 959, 974, 987, 993, 1007, 1014, 1017, 1022, 1025, 1028, 1040, 1054, 1064, 1067, 1071, 1075, 1079, 1084, 1089, 1094, 1099, 1113, 1124, 1130, 1133, 1138, 1147, 1151, 1156, 1161, 1167, 1174, 1179, 1182, 1198, 1201, 1207, 1217, 1225, 1229, 1238, 1242, 1254, 1257, 1267, 1270, 1277, 1285, 1292, 1295, 1302, 1305, 1310, 1316, 1324, 1330, 1336, 1344, 1349, 1356, 1363, 1371, 1378, 1383, 1388, 1395, 1399, 1401, 1405, 1408, 1413, 1418, 1423, 1427, 1431, 1435, 1441, 1444, 1447, 1450, 1456} 222 223 func (i FeatureID) String() string { 224 if i < 0 || i >= FeatureID(len(_FeatureID_index)-1) { 225 return "FeatureID(" + strconv.FormatInt(int64(i), 10) + ")" 226 } 227 return _FeatureID_name[_FeatureID_index[i]:_FeatureID_index[i+1]] 228 } 229 func _() { 230 // An "invalid array index" compiler error signifies that the constant values have changed. 231 // Re-run the stringer command to generate them again. 232 var x [1]struct{} 233 _ = x[VendorUnknown-0] 234 _ = x[Intel-1] 235 _ = x[AMD-2] 236 _ = x[VIA-3] 237 _ = x[Transmeta-4] 238 _ = x[NSC-5] 239 _ = x[KVM-6] 240 _ = x[MSVM-7] 241 _ = x[VMware-8] 242 _ = x[XenHVM-9] 243 _ = x[Bhyve-10] 244 _ = x[Hygon-11] 245 _ = x[SiS-12] 246 _ = x[RDC-13] 247 _ = x[Ampere-14] 248 _ = x[ARM-15] 249 _ = x[Broadcom-16] 250 _ = x[Cavium-17] 251 _ = x[DEC-18] 252 _ = x[Fujitsu-19] 253 _ = x[Infineon-20] 254 _ = x[Motorola-21] 255 _ = x[NVIDIA-22] 256 _ = x[AMCC-23] 257 _ = x[Qualcomm-24] 258 _ = x[Marvell-25] 259 _ = x[lastVendor-26] 260 } 261 262 const _Vendor_name = "VendorUnknownIntelAMDVIATransmetaNSCKVMMSVMVMwareXenHVMBhyveHygonSiSRDCAmpereARMBroadcomCaviumDECFujitsuInfineonMotorolaNVIDIAAMCCQualcommMarvelllastVendor" 263 264 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} 265 266 func (i Vendor) String() string { 267 if i < 0 || i >= Vendor(len(_Vendor_index)-1) { 268 return "Vendor(" + strconv.FormatInt(int64(i), 10) + ")" 269 } 270 return _Vendor_name[_Vendor_index[i]:_Vendor_index[i+1]] 271 }