[LLVMbugs] [Bug 12719] New: cpuid.h
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 1 17:33:48 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12719
Bug #: 12719
Summary: cpuid.h
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Headers
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: luc_j_bourhis at mac.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8483
--> http://llvm.org/bugs/attachment.cgi?id=8483
cpuid.h from gcc 4.4.4 on CentOS 6
Clang's cpuid.h is very crude compare to gcc's one (at least from version 4.4
onward as I haven't checked before that). The latter has code to test whether
cpuid is actually supported by the processor and perhaps more importantly it
provides a bunch of defines to help parsing the values returned in eax, ebx,
ecx and edx. Nothing stellar but it feels a bit stupid to have to parrot the
same code times and again. For your convenience, I have attached one such gcc's
cpuid.h.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list