www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6040] New: std.cpuid and core.cpuid return different values for some methods

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: kai redstar.de


--- Comment #0 from kai redstar.de 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: -------
May 20 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6040


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
    Attachment #987|application/octet-stream    |text/plain
          mime type|                            |
 Attachment #987 is|0                           |1
              patch|                            |


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 20 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6040


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au


--- Comment #1 from Don <clugdbug yahoo.com.au> 2011-05-20 14:48:52 PDT ---
std.cpuid should just be removed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 20 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6040


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


--- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2011-09-07
22:30:08 PDT ---
Fixed 2.055

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 07 2011