From: Collin Funk Date: Thu, 19 Feb 2026 03:02:58 +0000 (-0800) Subject: cpu-supports: Fix typos. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08e222ff788896d872ff6526d755d869786bbee7;p=thirdparty%2Fgnulib.git cpu-supports: Fix typos. * lib/cpu-supports.h (gcc_feature_to_glibc_hwcap): Fix typos in comments. --- diff --git a/ChangeLog b/ChangeLog index 1163413931..bff469e961 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2026-02-18 Collin Funk + 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. diff --git a/lib/cpu-supports.h b/lib/cpu-supports.h index abbd7e7fc4..df36fe3e75 100644 --- a/lib/cpu-supports.h +++ b/lib/cpu-supports.h @@ -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";