github.com/hellobchain/newcryptosm@v0.0.0-20221019060107-edb949a317e9/sm3/sm3block_decl.go (about)

     1  // Copyright 2013 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // +build amd64
     6  
     7  package sm3
     8  
     9  //go:noescape
    10  func blockasm(dig *digest, p []byte)
    11  
    12  func block(dig *digest, p []byte) {
    13  	if !useAVX2 {
    14  		blockGeneric(dig, p)
    15  	} else {
    16  		//		h := dig.h[:]
    17  		blockasm(dig, p)
    18  	}
    19  }