summaryrefslogtreecommitdiff
path: root/vendor/github.com/zeebo/blake3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/zeebo/blake3/Makefile')
-rw-r--r--vendor/github.com/zeebo/blake3/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/zeebo/blake3/Makefile b/vendor/github.com/zeebo/blake3/Makefile
new file mode 100644
index 000000000..f98f0f093
--- /dev/null
+++ b/vendor/github.com/zeebo/blake3/Makefile
@@ -0,0 +1,11 @@
+asm: internal/alg/hash/hash_avx2/impl_amd64.s internal/alg/compress/compress_sse41/impl_amd64.s
+
+internal/alg/hash/hash_avx2/impl_amd64.s: avo/avx2/*.go
+ ( cd avo; go run ./avx2 ) > internal/alg/hash/hash_avx2/impl_amd64.s
+
+internal/alg/compress/compress_sse41/impl_amd64.s: avo/sse41/*.go
+ ( cd avo; go run ./sse41 ) > internal/alg/compress/compress_sse41/impl_amd64.s
+
+.PHONY: test
+test:
+ go test -race -bench=. -benchtime=1x