mirror of https://github.com/golang/go.git
Merge the CRC32 Update and Write functions using an unexported function, to avoid duplication of code and make it more readable.
The only difference between them is the check of the initialization of the IEEE table, and a boolean value specifies that.
Throughout the crc32.go file, in the switches the default value is inserted inside the switch statement, this change uniforms the style of the MakeTable function, making it like the other pieces of code.
Change-Id: I3889f6c6671210c82f0d7250cea67907bccf3ce7
GitHub-Last-Rev:
|
||
|---|---|---|
| .. | ||
| crc32.go | ||
| crc32_amd64.go | ||
| crc32_amd64.s | ||
| crc32_arm64.go | ||
| crc32_arm64.s | ||
| crc32_generic.go | ||
| crc32_otherarch.go | ||
| crc32_ppc64le.go | ||
| crc32_ppc64le.s | ||
| crc32_s390x.go | ||
| crc32_s390x.s | ||
| crc32_table_ppc64le.s | ||
| crc32_test.go | ||
| example_test.go | ||
| gen_const_ppc64le.go | ||