[clang] [clang][Headers] Fix typo in documentation of cpuid.h (PR #215316)
Madhav Goyal via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 10 08:58:05 PDT 2026
https://github.com/mdhvg created https://github.com/llvm/llvm-project/pull/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.
>From 6b6a0d3be0a4e3fd74c3d7f4c9ce315fa9755062 Mon Sep 17 00:00:00 2001
From: Madhav Goyal <madhavgyl1 at gmail.com>
Date: Mon, 10 Aug 2026 21:22:39 +0530
Subject: [PATCH] Fix typo in documentation of cpuid.h 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.
---
clang/lib/Headers/cpuid.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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