mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-23 20:26:39 +00:00
20 lines
449 B
ArmAsm
20 lines
449 B
ArmAsm
|
// Code generated by command: go run asm.go -out match.s -stubs match_amd64.go. DO NOT EDIT.
|
||
|
|
||
|
//go:build amd64
|
||
|
|
||
|
#include "textflag.h"
|
||
|
|
||
|
// func MatchMetadata(metadata *[16]int8, hash int8) uint16
|
||
|
// Requires: SSE2, SSSE3
|
||
|
TEXT ·MatchMetadata(SB), NOSPLIT, $0-18
|
||
|
MOVQ metadata+0(FP), AX
|
||
|
MOVBLSX hash+8(FP), CX
|
||
|
MOVD CX, X0
|
||
|
PXOR X1, X1
|
||
|
PSHUFB X1, X0
|
||
|
MOVOU (AX), X1
|
||
|
PCMPEQB X1, X0
|
||
|
PMOVMSKB X0, AX
|
||
|
MOVW AX, ret+16(FP)
|
||
|
RET
|