]> Cypherpunks repositories - gostls13.git/commit
hash/crc32: simplify hasVX checking on s390x
authorRuixin(Peter) Bao <ruixin.bao@ibm.com>
Mon, 27 Apr 2020 19:23:37 +0000 (15:23 -0400)
committerMichael Munday <mike.munday@ibm.com>
Mon, 27 Apr 2020 21:18:58 +0000 (21:18 +0000)
commit9a3f22be7a3a28bd8f33a86925e2b05f2314ead2
tree375ffc3de9acaf9bb55515e677f50296bfbe14cd
parenta7e9e84716e2d39b1e7ea7f231334c88f2428260
hash/crc32: simplify hasVX checking on s390x

Originally, we use an assembly function that returns a boolean result to
tell whether the machine has vector facility or not. It is now no longer
needed when we can directly use cpu.S390X.HasVX variable. This CL
also removes the last occurence of hasVectorFacility function on s390x.

Change-Id: Id20cb746c21eacac5e13344b362e2d87adfe4317
Reviewed-on: https://go-review.googlesource.com/c/go/+/230337
Reviewed-by: Michael Munday <mike.munday@ibm.com>
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/hash/crc32/crc32_s390x.go
src/hash/crc32/crc32_s390x.s