Found on Reddit: Cache sizes with CPUID in C++ and D

Nordlöw via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun May 15 11:54:14 PDT 2016


On Sunday, 15 May 2016 at 14:56:47 UTC, Ali Çehreli wrote:
> Quote from the original article: "In D, there is a cpuid module 
> that can retrieve cache information, but from what I've found 
> it's incorrect."
>
> Then the author provides a function that does it correctly.

But the article doesn't tell what's wrong with.

So what's wrong with:

     import core.cpuid;
     const(CacheInfo)[5] dc = dataCaches();

?


More information about the Digitalmars-d-announce mailing list