From 1307755dadbdbfdedc1743c3ac58ab2f4f73ca8d Mon Sep 17 00:00:00 2001 From: Bas Westerbaan Date: Wed, 17 Jul 2024 14:19:43 +0200 Subject: [PATCH] add missing uint64 --- and_amd64.go | 6 +++--- and_arm64.s | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/and_amd64.go b/and_amd64.go index c45d717..66d7c4b 100644 --- a/and_amd64.go +++ b/and_amd64.go @@ -1,7 +1,7 @@ package and func and(dst, a, b []byte) { - l := 0 + l := uint64(0) if hasAVX2() { l = uint64(len(a)) >> 8 if l != 0 { @@ -13,7 +13,7 @@ func and(dst, a, b []byte) { } func or(dst, a, b []byte) { - l := 0 + l := uint64(0) if hasAVX2() { l = uint64(len(a)) >> 8 if l != 0 { @@ -25,7 +25,7 @@ func or(dst, a, b []byte) { } func andNot(dst, a, b []byte) { - l := 0 + l := uint64(0) if hasAVX2() { l = uint64(len(a)) >> 8 if l != 0 { diff --git a/and_arm64.s b/and_arm64.s index 9658ab6..f337784 100644 --- a/and_arm64.s +++ b/and_arm64.s @@ -3,7 +3,7 @@ #include "textflag.h" // func andNEON(dst *byte, a *byte, b *byte, l uint64) -TEXT ·andNEON(SB), NOSPLIT, $0-32 +TEXT ·andNEON(SB), NOSPLIT|NOFRAME, $0 MOVD dst+0(FP), R0 MOVD a+8(FP), R1 MOVD b+16(FP), R2