]> Cypherpunks repositories - gostls13.git/commit
hash/crc32: fix code generator to use the Go standard
authorOlivier Mengué <olivier.mengue@gmail.com>
Tue, 16 Jan 2024 22:30:12 +0000 (23:30 +0100)
committerGopher Robot <gobot@golang.org>
Mon, 19 Feb 2024 20:44:20 +0000 (20:44 +0000)
commit0882ca7a73639c3886ed7673c59d2a7f489cb9e4
tree46a631c0e0d702664c6540b5f0d69dffd4ed376d
parent7ecef2e3448db347901826c2b58049e73391d631
hash/crc32: fix code generator to use the Go standard

Apply the Go standard for code generation (https://go.dev/s/generatedcode)
to generated crc32_table_ppc64le.s despites this is not
generated Go but Assembly.  This is to help prevent changes like CL 478976
that changed the generated output without fixing the generator.

Add gen.go to allow to launch code generation with "go generate".

Change-Id: I8671284265425826c8620dbec055519b992fa04e
Reviewed-on: https://go-review.googlesource.com/c/go/+/556335
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
src/hash/crc32/crc32_table_ppc64le.s
src/hash/crc32/gen.go [new file with mode: 0644]
src/hash/crc32/gen_const_ppc64le.go