Skip to content

Commit 4e9e814

Browse files
committed
Revert "lint"
This reverts commit 3490a15.
1 parent 3490a15 commit 4e9e814

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

xxhash_go17.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ package xxhash
33
func u32(in []byte) uint32 {
44
return uint32(in[0]) | uint32(in[1])<<8 | uint32(in[2])<<16 | uint32(in[3])<<24
55
}
6+
func u64(in []byte) uint64 {
7+
return uint64(in[0]) | uint64(in[1])<<8 | uint64(in[2])<<16 | uint64(in[3])<<24 | uint64(in[4])<<32 | uint64(in[5])<<40 | uint64(in[6])<<48 | uint64(in[7])<<56
8+
}
69

710
// Checksum32S returns the checksum of the input bytes with the specific seed.
811
func Checksum32S(in []byte, seed uint32) (h uint32) {

xxhash_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ func BenchmarkXXSum64EvenPoint(b *testing.B) {
167167
b.SkipNow()
168168
}
169169

170-
for j := 256; j < len(in); j += 256 {
171-
block := in[:j]
172-
b.Run("Func/"+strconv.Itoa(j), func(b *testing.B) {
170+
for i := 256; i < len(in); i += 256 {
171+
block := in[:i]
172+
b.Run("Func/"+strconv.Itoa(i), func(b *testing.B) {
173173
for i := 0; i < b.N; i++ {
174174
xxhash.Checksum64(block)
175175
}
176176
})
177-
b.Run("Struct/"+strconv.Itoa(j), func(b *testing.B) {
177+
b.Run("Struct/"+strconv.Itoa(i), func(b *testing.B) {
178178
h := xxhash.New64()
179179
for i := 0; i < b.N; i++ {
180180
h.Write(block)

0 commit comments

Comments
 (0)