1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

liblzma: Fix typos in crc32_fast.c and crc64_fast.c.

This commit is contained in:
Jia Tan 2024-03-09 09:52:32 +08:00
parent cd5de9c1bb
commit 058337b0f1
2 changed files with 3 additions and 4 deletions

View file

@ -135,12 +135,12 @@ typedef uint32_t (*crc32_func_type)(
// This resolver is shared between all three dispatch methods. It serves as
// the ifunc resolver if ifunc is supported, otherwise it is called as a
// regular function by the constructor or first call resolution methods.
// The funcion attributes are needed for safe IFUNC resolver usage with GCC.
// The function attributes are needed for safe IFUNC resolver usage with GCC.
lzma_resolver_attributes
static crc32_func_type
crc32_resolve(void)
{
return is_arch_extension_supported()
return is_arch_extension_supported()
? &crc32_arch_optimized : &crc32_generic;
}

View file

@ -98,12 +98,11 @@ typedef uint64_t (*crc64_func_type)(
# pragma GCC diagnostic ignored "-Wunused-function"
#endif
// The funcion attributes are needed for safe IFUNC resolver usage with GCC.
lzma_resolver_attributes
static crc64_func_type
crc64_resolve(void)
{
return is_arch_extension_supported()
return is_arch_extension_supported()
? &crc64_arch_optimized : &crc64_generic;
}