whatcanGOwrong

This commit is contained in:
2024-09-19 21:38:24 -04:00
commit d0ae4d841d
17908 changed files with 4096831 additions and 0 deletions
@@ -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