CRC32: Replace local with static.

This commit is contained in:
OBattler
2025-07-24 16:15:36 +02:00
parent eb0d73f6a1
commit 91d2af521d

View File

@@ -247,7 +247,7 @@ static once_t made = ONCE_INIT;
Return a(x) multiplied by b(x) modulo p(x), where p(x) is the CRC polynomial, Return a(x) multiplied by b(x) modulo p(x), where p(x) is the CRC polynomial,
reflected. For speed, this requires that a not be zero. reflected. For speed, this requires that a not be zero.
*/ */
local crc_t multmodp(crc_t a, crc_t b) { static crc_t multmodp(crc_t a, crc_t b) {
crc_t m, p; crc_t m, p;
m = (crc_t)1 << 31; m = (crc_t)1 << 31;
@@ -268,7 +268,7 @@ local crc_t multmodp(crc_t a, crc_t b) {
Return x^(n * 2^k) modulo p(x). Requires that x2n_table[] has been Return x^(n * 2^k) modulo p(x). Requires that x2n_table[] has been
initialized. initialized.
*/ */
local crc_t x2nmodp(z_off64_t n, unsigned k) { static crc_t x2nmodp(z_off64_t n, unsigned k) {
crc_t p; crc_t p;
p = (z_crc_t)1 << 31; /* x^0 == 1 */ p = (z_crc_t)1 << 31; /* x^0 == 1 */