mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	main/common: Log/append AVX/FMA to the Host CPU string if available and add AVX512 detection
Co-Authored-By: Morph <morph1984@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									52fe6daa53
								
							
						
					
					
						commit
						ddb4135dea
					
				
					 5 changed files with 23 additions and 3 deletions
				
			
		|  | @ -110,6 +110,11 @@ static CPUCaps Detect() { | |||
|                 caps.bmi1 = true; | ||||
|             if ((cpu_id[1] >> 8) & 1) | ||||
|                 caps.bmi2 = true; | ||||
|             // Checks for AVX512F, AVX512CD, AVX512VL, AVX512DQ, AVX512BW (Intel Skylake-X/SP)
 | ||||
|             if ((cpu_id[1] >> 16) & 1 && (cpu_id[1] >> 28) & 1 && (cpu_id[1] >> 31) & 1 && | ||||
|                 (cpu_id[1] >> 17) & 1 && (cpu_id[1] >> 30) & 1) { | ||||
|                 caps.avx512 = caps.avx2; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
|  | @ -18,6 +18,7 @@ struct CPUCaps { | |||
|     bool sse4_2; | ||||
|     bool avx; | ||||
|     bool avx2; | ||||
|     bool avx512; | ||||
|     bool bmi1; | ||||
|     bool bmi2; | ||||
|     bool fma; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue