|
|
@@ -748,3 +748,15 @@ noinc:
|
|
|
|
|
|
MOVQ BP, SP
|
|
|
RET
|
|
|
+
|
|
|
+// func supportsAVX2() bool
|
|
|
+TEXT ·supportsAVX2(SB), 4, $0-1
|
|
|
+ MOVQ runtime·support_avx2(SB), AX
|
|
|
+ MOVB AX, ret+0(FP)
|
|
|
+ RET
|
|
|
+
|
|
|
+// func supportsAVX() bool
|
|
|
+TEXT ·supportsAVX(SB), 4, $0-1
|
|
|
+ MOVQ runtime·support_avx(SB), AX
|
|
|
+ MOVB AX, ret+0(FP)
|
|
|
+ RET
|