[clang] 6fd0aae - [clang][Headers] Fix typo in documentation of cpuid.h (#215316)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 10 09:56:13 PDT 2026
Author: Madhav Goyal
Date: 2026-08-10T16:56:08Z
New Revision: 6fd0aae1d6f59bf0b0b1fdbdbf217ccb6662d32c
URL: https://github.com/llvm/llvm-project/commit/6fd0aae1d6f59bf0b0b1fdbdbf217ccb6662d32c
DIFF: https://github.com/llvm/llvm-project/commit/6fd0aae1d6f59bf0b0b1fdbdbf217ccb6662d32c.diff
LOG: [clang][Headers] Fix typo in documentation of cpuid.h (#215316)
Fix extended leaf hex value from 0x8000000 to 0x80000000 in the doxygen
comment for __get_cpuid_max, and correct the description of its return
value behavior when CPUID is unsupported.
Added:
Modified:
clang/lib/Headers/cpuid.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/cpuid.h b/clang/lib/Headers/cpuid.h
index 156425c7561bb..8017db9f6a080 100644
--- a/clang/lib/Headers/cpuid.h
+++ b/clang/lib/Headers/cpuid.h
@@ -286,16 +286,16 @@
/// This intrinsic corresponds to the <c> CPUID </c> instruction.
///
/// \param __leaf
-/// \a __leaf can be either 0x0 or 0x8000000. If \a __leaf == 0x0, the
+/// \a __leaf can be either 0x0 or 0x80000000. If \a __leaf == 0x0, the
/// highest supported value for basic \c CPUID information is returned.
-/// If \a __leaf == 0x8000000, the highest supported value for extended
+/// If \a __leaf == 0x80000000, the highest supported value for extended
/// \c CPUID information is returned.
/// \param __sig
/// If the \a __sig pointer is non-null, the first four bytes of the
/// signature (as found in the \c EBX register) are returned in the
/// location pointed to by \a __sig.
-/// \returns Returns 0 if \c CPUID is supported; otherwise returns the value
-/// that \c CPUID returns in the \c EAX register.
+/// \returns Returns 0 if \c CPUID is not supported; otherwise returns the
+/// value that \c CPUID returns in the \c EAX register.
static __inline unsigned int __get_cpuid_max (unsigned int __leaf,
unsigned int *__sig)
{
More information about the cfe-commits
mailing list