Skip to content

Commit

Permalink
liblzma: Fix typos in crc32_fast.c and crc64_fast.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaT75 committed Mar 9, 2024
1 parent b93a8d7 commit 8c9b8b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/liblzma/check/crc32_fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 1 addition & 2 deletions src/liblzma/check/crc64_fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

1 comment on commit 8c9b8b2

@dangeredwolf

This comment was marked as spam.

Please sign in to comment.