• Paulo Flabiano Smorigo's avatar
    crypto/aes: improve performance for aes on ppc64le · 06e5a558
    Paulo Flabiano Smorigo authored
    Add asm implementation for AES in order to make use of VMX cryptographic
    acceleration instructions for POWER8. There is a speed boost of over 10
    times using those instructions:
    
    Fixes #18076
    
                            old ns/op  new ns/op  delta
    BenchmarkEncrypt-20     337        30.3       -91.00%
    BenchmarkDecrypt-20     347        30.5a      -91.21%
    BenchmarkExpand-20      1180       130        -88.98%
    
                            old MB/s   new MB/s   speedup
    BenchmarkEncrypt-20     47.38      527.68     11.13x
    BenchmarkDecrypt-20     46.05      524.45     11.38x
    
    Change-Id: Ifa4d1b508f4803cc72dcaad97acc8495d651b019
    Reviewed-on: https://go-review.googlesource.com/33587
    Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarLynn Boger <laboger@linux.vnet.ibm.com>
    06e5a558
asm_ppc64le.s 20.1 KB