diff options
| author | Olivier Mengué <olivier.mengue@gmail.com> | 2024-01-16 00:32:40 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-01-23 00:03:20 +0000 |
| commit | 9c663e8bf7bc3ebc205bc578a63b4a7a43e5c0e0 (patch) | |
| tree | 51483b9cb0cbdb7b27c60488bcf2d6f12f202c4f | |
| parent | bbd0bc22ea4bc447a4d009db7d5137688820896d (diff) | |
| download | go-9c663e8bf7bc3ebc205bc578a63b4a7a43e5c0e0.tar.xz | |
hash/crc32: fix codegen to align with manual changes
Update gen_const_ppc64le.go to match the manual changes applied in
CL 478976.
Change-Id: I79a0d014a2a151750f898517b2771b312f3437bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/555996
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
| -rw-r--r-- | src/hash/crc32/gen_const_ppc64le.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash/crc32/gen_const_ppc64le.go b/src/hash/crc32/gen_const_ppc64le.go index 2f15a60b50..4c1b79579f 100644 --- a/src/hash/crc32/gen_const_ppc64le.go +++ b/src/hash/crc32/gen_const_ppc64le.go @@ -141,7 +141,7 @@ func genCrc32ConstTable(w *bytes.Buffer, poly uint32, polyid string) { } fmt.Fprintf(w, "GLOBL ·%sConst(SB),RODATA,$4336\n", polyid) - fmt.Fprintf(w, "\n /* Barrett constant m - (4^32)/n */\n") + fmt.Fprintf(w, "\n\t/* Barrett constant m - (4^32)/n */\n") fmt.Fprintf(w, "DATA ·%sBarConst(SB)/8,$0x%016x\n", polyid, reflect_bits(get_quotient(ref_poly, 32, 64), 33)) fmt.Fprintf(w, "DATA ·%sBarConst+8(SB)/8,$0x0000000000000000\n", polyid) fmt.Fprintf(w, "DATA ·%sBarConst+16(SB)/8,$0x%016x\n", polyid, reflect_bits((uint64(1)<<32)|ref_poly, 33)) // reflected? |
