]> Cypherpunks repositories - gostls13.git/commitdiff
hash/crc32: fix codegen to align with manual changes
authorOlivier Mengué <olivier.mengue@gmail.com>
Mon, 15 Jan 2024 23:32:40 +0000 (00:32 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 23 Jan 2024 00:03:20 +0000 (00:03 +0000)
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>

src/hash/crc32/gen_const_ppc64le.go

index 2f15a60b50e3bed04f131ac7d48ed1201d63ffcb..4c1b79579fae05c85d2ae1cacc9823681e4dc9ea 100644 (file)
@@ -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?