Skip to content

Commit

Permalink
add missing uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
bwesterb committed Jul 17, 2024
1 parent 52c3193 commit 1307755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions and_amd64.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion and_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1307755

Please sign in to comment.