mirror of https://git.tukaani.org/xz.git
liblzma: CRC: Rename crcXX_generic to lzma_crcXX_generic
This prepares for the possibility that lzma_crc32_generic and lzma_crc64_generic are extern functions.
This commit is contained in:
parent
1dca581ff2
commit
6667d503b5
|
@ -29,7 +29,7 @@
|
||||||
///////////////////
|
///////////////////
|
||||||
|
|
||||||
static uint32_t
|
static uint32_t
|
||||||
crc32_generic(const uint8_t *buf, size_t size, uint32_t crc)
|
lzma_crc32_generic(const uint8_t *buf, size_t size, uint32_t crc)
|
||||||
{
|
{
|
||||||
crc = ~crc;
|
crc = ~crc;
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ static crc32_func_type
|
||||||
crc32_resolve(void)
|
crc32_resolve(void)
|
||||||
{
|
{
|
||||||
return is_arch_extension_supported()
|
return is_arch_extension_supported()
|
||||||
? &crc32_arch_optimized : &crc32_generic;
|
? &crc32_arch_optimized : &lzma_crc32_generic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -178,6 +178,6 @@ lzma_crc32(const uint8_t *buf, size_t size, uint32_t crc)
|
||||||
return crc32_arch_optimized(buf, size, crc);
|
return crc32_arch_optimized(buf, size, crc);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
return crc32_generic(buf, size, crc);
|
return lzma_crc32_generic(buf, size, crc);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
// See the comments in crc32_fast.c. They aren't duplicated here.
|
// See the comments in crc32_fast.c. They aren't duplicated here.
|
||||||
static uint64_t
|
static uint64_t
|
||||||
crc64_generic(const uint8_t *buf, size_t size, uint64_t crc)
|
lzma_crc64_generic(const uint8_t *buf, size_t size, uint64_t crc)
|
||||||
{
|
{
|
||||||
crc = ~crc;
|
crc = ~crc;
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ static crc64_func_type
|
||||||
crc64_resolve(void)
|
crc64_resolve(void)
|
||||||
{
|
{
|
||||||
return is_arch_extension_supported()
|
return is_arch_extension_supported()
|
||||||
? &crc64_arch_optimized : &crc64_generic;
|
? &crc64_arch_optimized : &lzma_crc64_generic;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR
|
#ifdef HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR
|
||||||
|
@ -154,6 +154,6 @@ lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc)
|
||||||
return crc64_arch_optimized(buf, size, crc);
|
return crc64_arch_optimized(buf, size, crc);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
return crc64_generic(buf, size, crc);
|
return lzma_crc64_generic(buf, size, crc);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue