http://d.puremagic.com/issues/show_bug.cgi?id=6040
Summary: std.cpuid and core.cpuid return different values for
some methods
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2011-05-20 10:29:14 PDT ---
Created an attachment (id=987)
Implement std.cpuid in terms of core.cpuid
std.cpuid (from Phobos) duplicates functionality from core.cpuid (from
druntime). Worse, some methods return different values. E.g. hyperThreading()
and threadsPerCPU().
(BTW: std.cpuid.threadsPerCPU() returns 16 for my i7, which is totally wrong.)
The attached patch removes the implementation from std.cpuid and uses alias to
reuse core.cpuid while preserving API compatibility.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------