• David du Colombier's avatar
    crypto/sha512: fix checkAVX2 · a38a2d02
    David du Colombier authored
    The checkAVX2 test doesn't appear to be correct,
    because it always returns the value of support_bmi2,
    even if the value of support_avx2 is false.
    
    Consequently, checkAVX2 always returns true, as long
    as BMI2 is supported, even if AVX2 is not supported.
    
    We change checkAVX2 to return false when support_avx2
    is false.
    
    Fixes #19316.
    
    Change-Id: I2ec9dfaa09f4b54c4a03d60efef891b955d60578
    Reviewed-on: https://go-review.googlesource.com/37590
    Run-TryBot: David du Colombier <0intro@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    a38a2d02
Name
Last commit
Last update
..
fallback_test.go Loading commit data...
sha512.go Loading commit data...
sha512_test.go Loading commit data...
sha512block.go Loading commit data...
sha512block_amd64.go Loading commit data...
sha512block_amd64.s Loading commit data...
sha512block_decl.go Loading commit data...
sha512block_generic.go Loading commit data...
sha512block_ppc64le.s Loading commit data...
sha512block_s390x.go Loading commit data...
sha512block_s390x.s Loading commit data...