]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Fix typos in crc32_fast.c and crc64_fast.c.
authorJia Tan <jiat0218@gmail.com>
Sat, 9 Mar 2024 01:52:32 +0000 (09:52 +0800)
committerJia Tan <jiat0218@gmail.com>
Sat, 9 Mar 2024 01:52:32 +0000 (09:52 +0800)
src/liblzma/check/crc32_fast.c
src/liblzma/check/crc64_fast.c

index 719d696c2d9c18e9958ce749adf00c30fadddd8a..bfa295a0d1c877f367b2b1fdff880394c0667ed9 100644 (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;
 }
 
index 330a50164a7ee887e3ae74f66b9e4e2558034310..52cddb2c549e800f0ab6d68a0ef3e65fffe7ede2 100644 (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;
 }