]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
cpu-supports: Fix typos.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 19 Feb 2026 03:02:58 +0000 (19:02 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Thu, 19 Feb 2026 03:02:58 +0000 (19:02 -0800)
* lib/cpu-supports.h (gcc_feature_to_glibc_hwcap): Fix typos in
comments.

ChangeLog
lib/cpu-supports.h

index 11634139311d028c4f3463adeeaf720dea0ad7e8..bff469e961f1490cf539504266e0b77725fff89e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2026-02-18  Collin Funk  <collin.funk1@gmail.com>
 
+       cpu-supports: Fix typos.
+       * lib/cpu-supports.h (gcc_feature_to_glibc_hwcap): Fix typos in
+       comments.
+
        cpu-supports: Add detection for Advanced SIMD (Neon) instructions.
        * lib/cpu-supports.h (gcc_feature_to_glibc_hwcap): Map "asimd" to
        "-ASIMD". Add a comment on where to find aarch64 hwcaps in glibc.
index abbd7e7fc412617a13c6d9d1cdb81cc73feebec6..df36fe3e7543b0d6b9e8b4e3c7b5b4d20a6dede1 100644 (file)
@@ -51,7 +51,7 @@
 
 
 /* Return the glibc.cpu.hwcaps setting (prepended with "-"),
-   corresponding to the passed gcc _builtin_cpu_supports(FEATURE).
+   corresponding to the passed gcc __builtin_cpu_supports(FEATURE).
    Supported hwcaps can be identified from the bit_cpu_* defines
    in GLIBC's sysdeps/x86/include/cpu-features.h for x86 and
    the HWCAP_* defines in sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
@@ -64,7 +64,7 @@ gcc_feature_to_glibc_hwcap (char const *feature)
   char const *hwcap = NULL;
 
   if (0) {}
-  /* x64_64 */
+  /* x86_64 */
   else if (streq (feature, "avx"))          hwcap = "-AVX";
   else if (streq (feature, "avx2"))         hwcap = "-AVX2";
   else if (streq (feature, "avx512bw"))     hwcap = "-AVX512BW";