mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 14:01:02 +00:00 
			
		
		
		
	Vendor Update (#16121)
* update github.com/PuerkitoBio/goquery * update github.com/alecthomas/chroma * update github.com/blevesearch/bleve/v2 * update github.com/caddyserver/certmagic * update github.com/go-enry/go-enry/v2 * update github.com/go-git/go-billy/v5 * update github.com/go-git/go-git/v5 * update github.com/go-redis/redis/v8 * update github.com/go-testfixtures/testfixtures/v3 * update github.com/jaytaylor/html2text * update github.com/json-iterator/go * update github.com/klauspost/compress * update github.com/markbates/goth * update github.com/mattn/go-isatty * update github.com/mholt/archiver/v3 * update github.com/microcosm-cc/bluemonday * update github.com/minio/minio-go/v7 * update github.com/prometheus/client_golang * update github.com/unrolled/render * update github.com/xanzy/go-gitlab * update github.com/yuin/goldmark * update github.com/yuin/goldmark-highlighting Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		
					parent
					
						
							
								f088dc4ea1
							
						
					
				
			
			
				commit
				
					
						86e2789960
					
				
			
		
					 819 changed files with 38072 additions and 34969 deletions
				
			
		
							
								
								
									
										8
									
								
								vendor/github.com/klauspost/cpuid/v2/cpuid.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/klauspost/cpuid/v2/cpuid.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -15,6 +15,7 @@ import ( | |||
| 	"fmt" | ||||
| 	"math" | ||||
| 	"os" | ||||
| 	"runtime" | ||||
| 	"strings" | ||||
| ) | ||||
| 
 | ||||
|  | @ -209,6 +210,7 @@ var cpuid func(op uint32) (eax, ebx, ecx, edx uint32) | |||
| var cpuidex func(op, op2 uint32) (eax, ebx, ecx, edx uint32) | ||||
| var xgetbv func(index uint32) (eax, edx uint32) | ||||
| var rdtscpAsm func() (eax, ebx, ecx, edx uint32) | ||||
| var darwinHasAVX512 = func() bool { return false } | ||||
| 
 | ||||
| // CPU contains information about the CPU as detected on startup, | ||||
| // or when Detect last was called. | ||||
|  | @ -922,7 +924,11 @@ func support() flagSet { | |||
| 			// Verify that XCR0[7:5] = ‘111b’ (OPMASK state, upper 256-bit of ZMM0-ZMM15 and | ||||
| 			// ZMM16-ZMM31 state are enabled by OS) | ||||
| 			/// and that XCR0[2:1] = ‘11b’ (XMM state and YMM state are enabled by OS). | ||||
| 			if (eax>>5)&7 == 7 && (eax>>1)&3 == 3 { | ||||
| 			hasAVX512 := (eax>>5)&7 == 7 && (eax>>1)&3 == 3 | ||||
| 			if runtime.GOOS == "darwin" { | ||||
| 				hasAVX512 = fs.inSet(AVX) && darwinHasAVX512() | ||||
| 			} | ||||
| 			if hasAVX512 { | ||||
| 				fs.setIf(ebx&(1<<16) != 0, AVX512F) | ||||
| 				fs.setIf(ebx&(1<<17) != 0, AVX512DQ) | ||||
| 				fs.setIf(ebx&(1<<21) != 0, AVX512IFMA) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue