Text file src/crypto/sha1/sha1block_s390x.s

     1  // Copyright 2016 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  #include "textflag.h"
     6  
     7  // func block(dig *digest, p []byte)
     8  TEXT ·block(SB), NOSPLIT|NOFRAME, $0-32
     9  	MOVBZ  ·useAsm(SB), R4
    10  	LMG    dig+0(FP), R1, R3            // R2 = &p[0], R3 = len(p)
    11  	MOVBZ  $1, R0                       // SHA-1 function code
    12  	CMPBEQ R4, $0, generic
    13  
    14  loop:
    15  	KIMD R0, R2      // compute intermediate message digest (KIMD)
    16  	BVS  loop        // continue if interrupted
    17  	RET
    18  
    19  generic:
    20  	BR ·blockGeneric(SB)
    21  

View as plain text