mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 21:32:24 -06:00 
			
		
		
		
	[chore]: Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.0 (#3210)
This commit is contained in:
		
					parent
					
						
							
								ae14aa004d
							
						
					
				
			
			
				commit
				
					
						6ff8376d96
					
				
			
		
					 197 changed files with 28294 additions and 563 deletions
				
			
		
							
								
								
									
										34
									
								
								vendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								vendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,34 @@
 | 
			
		|||
// Package cpuinfo gives runtime info about the current CPU.
 | 
			
		||||
//
 | 
			
		||||
// This is a very limited module meant for use internally
 | 
			
		||||
// in this project. For more versatile solution check
 | 
			
		||||
// https://github.com/klauspost/cpuid.
 | 
			
		||||
package cpuinfo
 | 
			
		||||
 | 
			
		||||
// HasBMI1 checks whether an x86 CPU supports the BMI1 extension.
 | 
			
		||||
func HasBMI1() bool {
 | 
			
		||||
	return hasBMI1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// HasBMI2 checks whether an x86 CPU supports the BMI2 extension.
 | 
			
		||||
func HasBMI2() bool {
 | 
			
		||||
	return hasBMI2
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// DisableBMI2 will disable BMI2, for testing purposes.
 | 
			
		||||
// Call returned function to restore previous state.
 | 
			
		||||
func DisableBMI2() func() {
 | 
			
		||||
	old := hasBMI2
 | 
			
		||||
	hasBMI2 = false
 | 
			
		||||
	return func() {
 | 
			
		||||
		hasBMI2 = old
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// HasBMI checks whether an x86 CPU supports both BMI1 and BMI2 extensions.
 | 
			
		||||
func HasBMI() bool {
 | 
			
		||||
	return HasBMI1() && HasBMI2()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var hasBMI1 bool
 | 
			
		||||
var hasBMI2 bool
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue