New Upstream Release - golang-github-templexxx-xorsimd

Ready changes

Summary

Merged new upstream version: 0.4.2 (was: 0.4.1).

Resulting package

Built on 2023-08-11T11:55 (took 4m35s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases golang-github-templexxx-xorsimd-dev

Lintian Result

Diff

diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml
new file mode 100644
index 0000000..1f8d885
--- /dev/null
+++ b/.github/workflows/unit-test.yml
@@ -0,0 +1,36 @@
+name: unit-test
+
+on:
+  push:
+    branches:
+      - master
+      - release/*
+  pull_request:
+    branches:
+      - master
+      
+jobs:
+
+  test:
+    name: Test
+    runs-on: ubuntu-latest
+    steps:
+
+    - name: Set up Go 1.13
+      uses: actions/setup-go@v1
+      with:
+        go-version: 1.13
+      id: go
+
+    - name: Check out code into the Go module directory
+      uses: actions/checkout@v1
+
+    - name: Get dependencies
+      run: |
+        go get -v -t -d ./...
+        if [ -f Gopkg.toml ]; then
+            curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
+            dep ensure
+        fi
+    - name: Run test
+      run: CGO_ENABLED=1 GO111MODULE=on go test -v -race
diff --git a/debian/changelog b/debian/changelog
index fd87901..e1b311e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-github-templexxx-xorsimd (0.4.2-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Fri, 11 Aug 2023 11:51:31 -0000
+
 golang-github-templexxx-xorsimd (0.4.1-2) unstable; urgency=medium
 
   * Add patch to fix FTBFS/debci on !amd64 archs
diff --git a/debian/patches/fix-nonamd64-build.patch b/debian/patches/fix-nonamd64-build.patch
index 7625629..29553aa 100644
--- a/debian/patches/fix-nonamd64-build.patch
+++ b/debian/patches/fix-nonamd64-build.patch
@@ -2,9 +2,11 @@ Description: Declaring wordsize in tests and in xor_other leads to declaration o
 two instances. Change the var name in tests.
 Author: Nilesh Patra <nilesh@debian.org>
 Last-Update: 2022-08-06
---- a/xor_test.go
-+++ b/xor_test.go
-@@ -76,43 +76,43 @@
+Index: golang-github-templexxx-xorsimd.git/xor_test.go
+===================================================================
+--- golang-github-templexxx-xorsimd.git.orig/xor_test.go
++++ golang-github-templexxx-xorsimd.git/xor_test.go
+@@ -76,43 +76,43 @@ func TestBytes16(t *testing.T) {
  	}
  }
  
@@ -57,7 +59,7 @@ Last-Update: 2022-08-06
  		}
  		dst1 = dst1[offset : offset+8]
  
-@@ -132,7 +132,7 @@
+@@ -132,7 +132,7 @@ func TestBytes8Align(t *testing.T) {
  }
  
  func alignment(s []byte) int {
@@ -66,7 +68,7 @@ Last-Update: 2022-08-06
  }
  
  func TestBytes16Align(t *testing.T) {
-@@ -140,36 +140,36 @@
+@@ -140,36 +140,36 @@ func TestBytes16Align(t *testing.T) {
  	rand.Seed(time.Now().UnixNano())
  
  	for j := 0; j < 1024; j++ {
diff --git a/go.mod b/go.mod
index ac5f57f..44f9976 100644
--- a/go.mod
+++ b/go.mod
@@ -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
diff --git a/go.sum b/go.sum
index 04d04de..afcb2aa 100644
--- a/go.sum
+++ b/go.sum
@@ -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=
diff --git a/xoravx2_amd64.s b/xoravx2_amd64.s
index 23cf924..3dc17c4 100644
--- a/xoravx2_amd64.s
+++ b/xoravx2_amd64.s
@@ -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
@@ -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
diff --git a/xoravx512_amd64.s b/xoravx512_amd64.s
index 2ba6b75..80f995d 100644
--- a/xoravx512_amd64.s
+++ b/xoravx512_amd64.s
@@ -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
@@ -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
diff --git a/xorbytes_amd64.s b/xorbytes_amd64.s
index 8f67edd..539ec3b 100644
--- a/xorbytes_amd64.s
+++ b/xorbytes_amd64.s
@@ -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
@@ -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
@@ -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
diff --git a/xorsse2_amd64.s b/xorsse2_amd64.s
index 38df948..78126e0 100644
--- a/xorsse2_amd64.s
+++ b/xorsse2_amd64.s
@@ -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
@@ -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

More details

Full run details