From 9c663e8bf7bc3ebc205bc578a63b4a7a43e5c0e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 16 Jan 2024 00:32:40 +0100 Subject: [PATCH] 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 --- src/hash/crc32/gen_const_ppc64le.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- 2.48.1