]> Cypherpunks repositories - gostls13.git/commit
hash: simplify binary operations
authorapocelipes <seve3r@outlook.com>
Thu, 26 Oct 2023 02:28:28 +0000 (02:28 +0000)
committerKeith Randall <khr@golang.org>
Sun, 19 Nov 2023 15:24:07 +0000 (15:24 +0000)
commit1c15291fa0efaeb14a76d0b0bcd8390665c9b97d
treeccb3c9046bd2ad1c3f278a6d62df53a396608dd4
parentd67ac9389517aa15e0f6355aec13cc4a8773984b
hash: simplify binary operations

We can not use encoding/binary in hash packages because of import cycles.

So just keep the appendUint and readUint helper functions same as that
in the encoding/binary standard package.

There is no notable performance impacts.

Updates #63719

Change-Id: If47a7faaf9d422d772f32bbe1fa2f2c8a16485f4
GitHub-Last-Rev: f334fee408eff6869a7cc5f306df525d4d55d2cf
GitHub-Pull-Request: golang/go#63746
Reviewed-on: https://go-review.googlesource.com/c/go/+/537796
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/hash/adler32/adler32.go
src/hash/crc32/crc32.go
src/hash/crc64/crc64.go
src/hash/fnv/fnv.go