Skip to content

Commit

Permalink
NOSPLIT -> 4
Browse files Browse the repository at this point in the history
  • Loading branch information
templexxx committed Dec 14, 2022
1 parent e2f34ad commit 9a13d9e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/templexxx/xorsimd

require github.com/templexxx/cpu v0.0.1
require github.com/templexxx/cpu v0.1.0

go 1.13
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/templexxx/cpu v0.0.1 h1:hY4WdLOgKdc8y13EYklu9OUTXik80BkxHoWvTO6MQQY=
github.com/templexxx/cpu v0.0.1/go.mod h1:w7Tb+7qgcAlIyX4NhLuDKt78AHA5SzPmq0Wj6HiEnnk=
github.com/templexxx/cpu v0.1.0 h1:wVM+WIJP2nYaxVxqgHPD4wGA2aJ9rvrQRV8CvFzNb40=
github.com/templexxx/cpu v0.1.0/go.mod h1:w7Tb+7qgcAlIyX4NhLuDKt78AHA5SzPmq0Wj6HiEnnk=
4 changes: 1 addition & 3 deletions xoravx2_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// Use of this source code is governed by the MIT License
// that can be found in the LICENSE file.

#include "textflag.h"

#define dst BX // parity's address
#define d2src SI // two-dimension src_slice's address
#define csrc CX // cnt of src
Expand All @@ -19,7 +17,7 @@
#define src_val1 R14

// func encodeAVX2(dst []byte, src [][]byte)
TEXT ·encodeAVX2(SB), NOSPLIT, $0
TEXT ·encodeAVX2(SB), 4, $0
MOVQ d+0(FP), dst
MOVQ s+24(FP), d2src
MOVQ c+32(FP), csrc
Expand Down
4 changes: 1 addition & 3 deletions xoravx512_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// Use of this source code is governed by the MIT License
// that can be found in the LICENSE file.

#include "textflag.h"

#define dst BX // parity's address
#define d2src SI // two-dimension src_slice's address
#define csrc CX // cnt of src
Expand All @@ -19,7 +17,7 @@
#define src_val1 R14

// func encodeAVX512(dst []byte, src [][]byte)
TEXT ·encodeAVX512(SB), NOSPLIT, $0
TEXT ·encodeAVX512(SB), 4, $0
MOVQ d+0(FP), dst
MOVQ src+24(FP), d2src
MOVQ c+32(FP), csrc
Expand Down
7 changes: 3 additions & 4 deletions xorbytes_amd64.s
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "textflag.h"

// func bytesN(dst, a, b *byte, n int)
TEXT ·bytesN(SB), NOSPLIT, $0
TEXT ·bytesN(SB), 4, $0
MOVQ d+0(FP), BX
MOVQ a+8(FP), SI
MOVQ b+16(FP), CX
Expand Down Expand Up @@ -50,7 +49,7 @@ ret:
RET

// func bytes8(dst, a, b *byte)
TEXT ·bytes8(SB), NOSPLIT, $0
TEXT ·bytes8(SB), 4, $0
MOVQ d+0(FP), BX
MOVQ a+8(FP), SI
MOVQ b+16(FP), CX
Expand All @@ -61,7 +60,7 @@ TEXT ·bytes8(SB), NOSPLIT, $0
RET

// func bytes16(dst, a, b *byte)
TEXT ·bytes16(SB), NOSPLIT, $0
TEXT ·bytes16(SB), 4, $0
MOVQ d+0(FP), BX
MOVQ a+8(FP), SI
MOVQ b+16(FP), CX
Expand Down
3 changes: 1 addition & 2 deletions xorsse2_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// Use of this source code is governed by the MIT License
// that can be found in the LICENSE file.

#include "textflag.h"

#define dst BX // parity's address
#define d2src SI // two-dimension src_slice's address
Expand All @@ -19,7 +18,7 @@
#define src_val1 R14

// func encodeSSE2(dst []byte, src [][]byte)
TEXT ·encodeSSE2(SB), NOSPLIT, $0
TEXT ·encodeSSE2(SB), 4, $0
MOVQ d+0(FP), dst
MOVQ src+24(FP), d2src
MOVQ c+32(FP), csrc
Expand Down

0 comments on commit 9a13d9e

Please sign in to comment.