diff options
author | 2024-05-13 08:05:46 +0000 | |
---|---|---|
committer | 2024-05-13 08:05:46 +0000 | |
commit | c06e6fb6561595adc80ce5191640ae442771d45c (patch) | |
tree | 58845f63151eff4e984351575eea67f5e82a6c82 /vendor/github.com/dolthub/swiss/simd | |
parent | [bugfix] Reset emoji fields on upload error (#2905) (diff) | |
download | gotosocial-c06e6fb6561595adc80ce5191640ae442771d45c.tar.xz |
[performance] update go-structr and go-mutexes with memory usage improvements (#2909)
* update go-structr and go-mutexes with memory usage improvements
* bump to go-structr v0.8.4
Diffstat (limited to 'vendor/github.com/dolthub/swiss/simd')
-rw-r--r-- | vendor/github.com/dolthub/swiss/simd/match.s | 19 | ||||
-rw-r--r-- | vendor/github.com/dolthub/swiss/simd/match_amd64.go | 9 |
2 files changed, 28 insertions, 0 deletions
diff --git a/vendor/github.com/dolthub/swiss/simd/match.s b/vendor/github.com/dolthub/swiss/simd/match.s new file mode 100644 index 000000000..4ae29e77b --- /dev/null +++ b/vendor/github.com/dolthub/swiss/simd/match.s @@ -0,0 +1,19 @@ +// 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 diff --git a/vendor/github.com/dolthub/swiss/simd/match_amd64.go b/vendor/github.com/dolthub/swiss/simd/match_amd64.go new file mode 100644 index 000000000..538c8e124 --- /dev/null +++ b/vendor/github.com/dolthub/swiss/simd/match_amd64.go @@ -0,0 +1,9 @@ +// Code generated by command: go run asm.go -out match.s -stubs match_amd64.go. DO NOT EDIT. + +//go:build amd64 + +package simd + +// MatchMetadata performs a 16-way probe of |metadata| using SSE instructions +// nb: |metadata| must be an aligned pointer +func MatchMetadata(metadata *[16]int8, hash int8) uint16 |