13 lines
		
	
	
		
			354 B
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			354 B
		
	
	
	
		
			Go
		
	
	
| // Copyright 2016 The Go Authors. All rights reserved.
 | |
| // Use of this source code is governed by a BSD-style
 | |
| // license that can be found in the LICENSE file.
 | |
| 
 | |
| package sha256
 | |
| 
 | |
| // featureCheck reports whether the CPU supports the
 | |
| // SHA256 compute intermediate message digest (KIMD)
 | |
| // function code.
 | |
| func featureCheck() bool
 | |
| 
 | |
| var useAsm = featureCheck()
 |