catinello.eu/x/cpuid@v0.0.0-20231214173555-81a76c018636/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[AVXVNNI-27]
    38  	_ = x[BMI1-28]
    39  	_ = x[BMI2-29]
    40  	_ = x[CETIBT-30]
    41  	_ = x[CETSS-31]
    42  	_ = x[CLDEMOTE-32]
    43  	_ = x[CLMUL-33]
    44  	_ = x[CLZERO-34]
    45  	_ = x[CMOV-35]
    46  	_ = x[CMPSB_SCADBS_SHORT-36]
    47  	_ = x[CMPXCHG8-37]
    48  	_ = x[CPBOOST-38]
    49  	_ = x[CX16-39]
    50  	_ = x[ENQCMD-40]
    51  	_ = x[ERMS-41]
    52  	_ = x[F16C-42]
    53  	_ = x[FMA3-43]
    54  	_ = x[FMA4-44]
    55  	_ = x[FXSR-45]
    56  	_ = x[FXSROPT-46]
    57  	_ = x[GFNI-47]
    58  	_ = x[HLE-48]
    59  	_ = x[HRESET-49]
    60  	_ = x[HTT-50]
    61  	_ = x[HWA-51]
    62  	_ = x[HYPERVISOR-52]
    63  	_ = x[IBPB-53]
    64  	_ = x[IBS-54]
    65  	_ = x[IBSBRNTRGT-55]
    66  	_ = x[IBSFETCHSAM-56]
    67  	_ = x[IBSFFV-57]
    68  	_ = x[IBSOPCNT-58]
    69  	_ = x[IBSOPCNTEXT-59]
    70  	_ = x[IBSOPSAM-60]
    71  	_ = x[IBSRDWROPCNT-61]
    72  	_ = x[IBSRIPINVALIDCHK-62]
    73  	_ = x[IBS_PREVENTHOST-63]
    74  	_ = x[INT_WBINVD-64]
    75  	_ = x[INVLPGB-65]
    76  	_ = x[LAHF-66]
    77  	_ = x[LAM-67]
    78  	_ = x[LBRVIRT-68]
    79  	_ = x[LZCNT-69]
    80  	_ = x[MCAOVERFLOW-70]
    81  	_ = x[MCOMMIT-71]
    82  	_ = x[MMX-72]
    83  	_ = x[MMXEXT-73]
    84  	_ = x[MOVBE-74]
    85  	_ = x[MOVDIR64B-75]
    86  	_ = x[MOVDIRI-76]
    87  	_ = x[MOVSB_ZL-77]
    88  	_ = x[MPX-78]
    89  	_ = x[MSRIRC-79]
    90  	_ = x[MSR_PAGEFLUSH-80]
    91  	_ = x[NRIPS-81]
    92  	_ = x[NX-82]
    93  	_ = x[OSXSAVE-83]
    94  	_ = x[PCONFIG-84]
    95  	_ = x[POPCNT-85]
    96  	_ = x[RDPRU-86]
    97  	_ = x[RDRAND-87]
    98  	_ = x[RDSEED-88]
    99  	_ = x[RDTSCP-89]
   100  	_ = x[RTM-90]
   101  	_ = x[RTM_ALWAYS_ABORT-91]
   102  	_ = x[SERIALIZE-92]
   103  	_ = x[SEV-93]
   104  	_ = x[SEV_64BIT-94]
   105  	_ = x[SEV_ALTERNATIVE-95]
   106  	_ = x[SEV_DEBUGSWAP-96]
   107  	_ = x[SEV_ES-97]
   108  	_ = x[SEV_RESTRICTED-98]
   109  	_ = x[SEV_SNP-99]
   110  	_ = x[SGX-100]
   111  	_ = x[SGXLC-101]
   112  	_ = x[SHA-102]
   113  	_ = x[SME-103]
   114  	_ = x[SME_COHERENT-104]
   115  	_ = x[SSE-105]
   116  	_ = x[SSE2-106]
   117  	_ = x[SSE3-107]
   118  	_ = x[SSE4-108]
   119  	_ = x[SSE42-109]
   120  	_ = x[SSE4A-110]
   121  	_ = x[SSSE3-111]
   122  	_ = x[STIBP-112]
   123  	_ = x[STOSB_SHORT-113]
   124  	_ = x[SUCCOR-114]
   125  	_ = x[SVM-115]
   126  	_ = x[SVMDA-116]
   127  	_ = x[SVMFBASID-117]
   128  	_ = x[SVML-118]
   129  	_ = x[SVMNP-119]
   130  	_ = x[SVMPF-120]
   131  	_ = x[SVMPFT-121]
   132  	_ = x[SYSCALL-122]
   133  	_ = x[SYSEE-123]
   134  	_ = x[TBM-124]
   135  	_ = x[TME-125]
   136  	_ = x[TSCRATEMSR-126]
   137  	_ = x[TSXLDTRK-127]
   138  	_ = x[VAES-128]
   139  	_ = x[VMCBCLEAN-129]
   140  	_ = x[VMPL-130]
   141  	_ = x[VMSA_REGPROT-131]
   142  	_ = x[VMX-132]
   143  	_ = x[VPCLMULQDQ-133]
   144  	_ = x[VTE-134]
   145  	_ = x[WAITPKG-135]
   146  	_ = x[WBNOINVD-136]
   147  	_ = x[X87-137]
   148  	_ = x[XGETBV1-138]
   149  	_ = x[XOP-139]
   150  	_ = x[XSAVE-140]
   151  	_ = x[XSAVEC-141]
   152  	_ = x[XSAVEOPT-142]
   153  	_ = x[XSAVES-143]
   154  	_ = x[AESARM-144]
   155  	_ = x[ARMCPUID-145]
   156  	_ = x[ASIMD-146]
   157  	_ = x[ASIMDDP-147]
   158  	_ = x[ASIMDHP-148]
   159  	_ = x[ASIMDRDM-149]
   160  	_ = x[ATOMICS-150]
   161  	_ = x[CRC32-151]
   162  	_ = x[DCPOP-152]
   163  	_ = x[EVTSTRM-153]
   164  	_ = x[FCMA-154]
   165  	_ = x[FP-155]
   166  	_ = x[FPHP-156]
   167  	_ = x[GPA-157]
   168  	_ = x[JSCVT-158]
   169  	_ = x[LRCPC-159]
   170  	_ = x[PMULL-160]
   171  	_ = x[SHA1-161]
   172  	_ = x[SHA2-162]
   173  	_ = x[SHA3-163]
   174  	_ = x[SHA512-164]
   175  	_ = x[SM3-165]
   176  	_ = x[SM4-166]
   177  	_ = x[SVE-167]
   178  	_ = x[lastID-168]
   179  	_ = x[firstID-0]
   180  }
   181  
   182  const _FeatureID_name = "firstIDADXAESNIAMD3DNOWAMD3DNOWEXTAMXBF16AMXINT8AMXTILEAVXAVX2AVX512BF16AVX512BITALGAVX512BWAVX512CDAVX512DQAVX512ERAVX512FAVX512FP16AVX512IFMAAVX512PFAVX512VBMIAVX512VBMI2AVX512VLAVX512VNNIAVX512VP2INTERSECTAVX512VPOPCNTDQAVXSLOWAVXVNNIBMI1BMI2CETIBTCETSSCLDEMOTECLMULCLZEROCMOVCMPSB_SCADBS_SHORTCMPXCHG8CPBOOSTCX16ENQCMDERMSF16CFMA3FMA4FXSRFXSROPTGFNIHLEHRESETHTTHWAHYPERVISORIBPBIBSIBSBRNTRGTIBSFETCHSAMIBSFFVIBSOPCNTIBSOPCNTEXTIBSOPSAMIBSRDWROPCNTIBSRIPINVALIDCHKIBS_PREVENTHOSTINT_WBINVDINVLPGBLAHFLAMLBRVIRTLZCNTMCAOVERFLOWMCOMMITMMXMMXEXTMOVBEMOVDIR64BMOVDIRIMOVSB_ZLMPXMSRIRCMSR_PAGEFLUSHNRIPSNXOSXSAVEPCONFIGPOPCNTRDPRURDRANDRDSEEDRDTSCPRTMRTM_ALWAYS_ABORTSERIALIZESEVSEV_64BITSEV_ALTERNATIVESEV_DEBUGSWAPSEV_ESSEV_RESTRICTEDSEV_SNPSGXSGXLCSHASMESME_COHERENTSSESSE2SSE3SSE4SSE42SSE4ASSSE3STIBPSTOSB_SHORTSUCCORSVMSVMDASVMFBASIDSVMLSVMNPSVMPFSVMPFTSYSCALLSYSEETBMTMETSCRATEMSRTSXLDTRKVAESVMCBCLEANVMPLVMSA_REGPROTVMXVPCLMULQDQVTEWAITPKGWBNOINVDX87XGETBV1XOPXSAVEXSAVECXSAVEOPTXSAVESAESARMARMCPUIDASIMDASIMDDPASIMDHPASIMDRDMATOMICSCRC32DCPOPEVTSTRMFCMAFPFPHPGPAJSCVTLRCPCPMULLSHA1SHA2SHA3SHA512SM3SM4SVElastID"
   183  
   184  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, 237, 241, 245, 251, 256, 264, 269, 275, 279, 297, 305, 312, 316, 322, 326, 330, 334, 338, 342, 349, 353, 356, 362, 365, 368, 378, 382, 385, 395, 406, 412, 420, 431, 439, 451, 467, 482, 492, 499, 503, 506, 513, 518, 529, 536, 539, 545, 550, 559, 566, 574, 577, 583, 596, 601, 603, 610, 617, 623, 628, 634, 640, 646, 649, 665, 674, 677, 686, 701, 714, 720, 734, 741, 744, 749, 752, 755, 767, 770, 774, 778, 782, 787, 792, 797, 802, 813, 819, 822, 827, 836, 840, 845, 850, 856, 863, 868, 871, 874, 884, 892, 896, 905, 909, 921, 924, 934, 937, 944, 952, 955, 962, 965, 970, 976, 984, 990, 996, 1004, 1009, 1016, 1023, 1031, 1038, 1043, 1048, 1055, 1059, 1061, 1065, 1068, 1073, 1078, 1083, 1087, 1091, 1095, 1101, 1104, 1107, 1110, 1116}
   185  
   186  func (i FeatureID) String() string {
   187  	if i < 0 || i >= FeatureID(len(_FeatureID_index)-1) {
   188  		return "FeatureID(" + strconv.FormatInt(int64(i), 10) + ")"
   189  	}
   190  	return _FeatureID_name[_FeatureID_index[i]:_FeatureID_index[i+1]]
   191  }
   192  func _() {
   193  	// An "invalid array index" compiler error signifies that the constant values have changed.
   194  	// Re-run the stringer command to generate them again.
   195  	var x [1]struct{}
   196  	_ = x[VendorUnknown-0]
   197  	_ = x[Intel-1]
   198  	_ = x[AMD-2]
   199  	_ = x[VIA-3]
   200  	_ = x[Transmeta-4]
   201  	_ = x[NSC-5]
   202  	_ = x[KVM-6]
   203  	_ = x[MSVM-7]
   204  	_ = x[VMware-8]
   205  	_ = x[XenHVM-9]
   206  	_ = x[Bhyve-10]
   207  	_ = x[Hygon-11]
   208  	_ = x[SiS-12]
   209  	_ = x[RDC-13]
   210  	_ = x[Ampere-14]
   211  	_ = x[ARM-15]
   212  	_ = x[Broadcom-16]
   213  	_ = x[Cavium-17]
   214  	_ = x[DEC-18]
   215  	_ = x[Fujitsu-19]
   216  	_ = x[Infineon-20]
   217  	_ = x[Motorola-21]
   218  	_ = x[NVIDIA-22]
   219  	_ = x[AMCC-23]
   220  	_ = x[Qualcomm-24]
   221  	_ = x[Marvell-25]
   222  	_ = x[lastVendor-26]
   223  }
   224  
   225  const _Vendor_name = "VendorUnknownIntelAMDVIATransmetaNSCKVMMSVMVMwareXenHVMBhyveHygonSiSRDCAmpereARMBroadcomCaviumDECFujitsuInfineonMotorolaNVIDIAAMCCQualcommMarvelllastVendor"
   226  
   227  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}
   228  
   229  func (i Vendor) String() string {
   230  	if i < 0 || i >= Vendor(len(_Vendor_index)-1) {
   231  		return "Vendor(" + strconv.FormatInt(int64(i), 10) + ")"
   232  	}
   233  	return _Vendor_name[_Vendor_index[i]:_Vendor_index[i+1]]
   234  }