github.com/oarkflow/sio@v0.0.6/internal/maps/simd/match.s (about) 1 // Code generated by command: go run asm.go -out match.s -stubs match_amd64.go. DO NOT EDIT. 2 3 //go:build amd64 4 5 #include "textflag.h" 6 7 // func MatchMetadata(metadata *[16]int8, hash int8) uint16 8 // Requires: SSE2, SSSE3 9 TEXT ·MatchMetadata(SB), NOSPLIT, $0-18 10 MOVQ metadata+0(FP), AX 11 MOVBLSX hash+8(FP), CX 12 MOVD CX, X0 13 PXOR X1, X1 14 PSHUFB X1, X0 15 MOVOU (AX), X1 16 PCMPEQB X1, X0 17 PMOVMSKB X0, AX 18 MOVW AX, ret+16(FP) 19 RET