Skip to content

Commit

Permalink
internal/bytealg: remove dependency on runtime·support_avx2
Browse files Browse the repository at this point in the history
Use internal/cpu instead.

Change-Id: I8670440389cbd88951fee61e352c4a10ac7eee6e
Reviewed-on: https://go-review.googlesource.com/102737
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
TocarIP committed Mar 28, 2018
1 parent 7e34ac1 commit f8b28e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/bytealg/count_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ endofpage:
RET

avx2:
CMPB runtime·support_avx2(SB), $1
CMPB internal∕cpu·X86+const_x86_HasAVX2(SB), $1
JNE sse
MOVD AX, X0
LEAQ -32(SI)(BX*1), R11
Expand Down

0 comments on commit f8b28e2

Please sign in to comment.