From: Olivier Mengué Date: Mon, 15 Jan 2024 23:32:40 +0000 (+0100) Subject: hash/crc32: fix codegen to align with manual changes X-Git-Tag: go1.23rc1~1414 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9c663e8bf7bc3ebc205bc578a63b4a7a43e5c0e0;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI Reviewed-by: Cherry Mui Auto-Submit: Michael Pratt --- 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?