• Lynn Boger's avatar
    crypto/md5: add assembly implementation on ppc64le · 0fec75f5
    Lynn Boger authored
    This change improves the performance of the block
    function used within crypto/md5 on ppc64le.  The following
    improvement was seen:
    
    BenchmarkHash8Bytes              8.39         26.04        3.10x
    BenchmarkHash1K                  99.41        407.84       4.10x
    BenchmarkHash8K                  108.87       460.00       4.23x
    BenchmarkHash8BytesUnaligned     8.39         25.80        3.08x
    BenchmarkHash1KUnaligned         89.94        407.81       4.53x
    BenchmarkHash8KUnaligned         96.57        459.22       4.76x
    
    Fixes #15385
    
    Change-Id: I8af5af089cc3e3740c33c662003d104de5fe1d1b
    Reviewed-on: https://go-review.googlesource.com/22294
    Run-TryBot: Michael Munday <munday@ca.ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    0fec75f5
md5block_decl.go 264 Bytes