whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
//go:noescape
|
||||
func VPSLLQ36(src, dst *[4]uint64)
|
||||
|
||||
func main() {
|
||||
src := [4]uint64{0: 0x38180a06, 1: 0x38180a06, 2: 0x18080200, 3: 0x18080200}
|
||||
dst := [4]uint64{}
|
||||
VPSLLQ36(&src, &dst)
|
||||
|
||||
for _, qword := range dst {
|
||||
fmt.Printf("%064b\n", qword)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "textflag.h"
|
||||
|
||||
TEXT ·VPSLLQ36(SB), NOSPLIT, $0-16
|
||||
MOVQ src+0(FP), AX
|
||||
MOVQ dst+8(FP), BX
|
||||
VMOVDQU (AX), Y0
|
||||
VPSLLQ $36, Y0, Y0
|
||||
VMOVDQU Y0, (BX)
|
||||
RET
|
||||
Reference in New Issue
Block a user