www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - __cpuid like in C

reply Arsium <mehdi81101 gmail.com> writes:
Hello,

Currently, I'm working to implement myself WinAPI functions. 
However, I could not find anything matching with  : __cpuid like 
: https://gist.github.com/boxmein/7d8e5fae7febafc5851e

Any idea ?
Nov 01 2021
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
I think you are wanting this?

https://dlang.org/phobos/core_cpuid.html#.processor
Nov 01 2021
parent Arsium <mehdi81101 gmail.com> writes:
On Monday, 1 November 2021 at 16:01:38 UTC, rikki cattermole 
wrote:
 I think you are wanting this?

 https://dlang.org/phobos/core_cpuid.html#.processor
Oh thx my bad I did not see it!
Nov 01 2021
prev sibling parent reply Paul Backus <snarwin gmail.com> writes:
On Monday, 1 November 2021 at 16:00:05 UTC, Arsium wrote:
 Hello,

 Currently, I'm working to implement myself WinAPI functions. 
 However, I could not find anything matching with  : __cpuid 
 like : https://gist.github.com/boxmein/7d8e5fae7febafc5851e

 Any idea ?
Not sure if it's exactly the same, but there is [`core.cpuid`][1]. [1]: https://druntime.dpldocs.info/core.cpuid.html
Nov 01 2021
parent reply Arsium <mehdi81101 gmail.com> writes:
On Monday, 1 November 2021 at 16:02:20 UTC, Paul Backus wrote:
 On Monday, 1 November 2021 at 16:00:05 UTC, Arsium wrote:
 Hello,

 Currently, I'm working to implement myself WinAPI functions. 
 However, I could not find anything matching with  : __cpuid 
 like : https://gist.github.com/boxmein/7d8e5fae7febafc5851e

 Any idea ?
Not sure if it's exactly the same, but there is [`core.cpuid`][1]. [1]: https://druntime.dpldocs.info/core.cpuid.html
Oh thx my bad I did not see it!
Nov 01 2021
parent WebFreak001 <d.forum webfreak.org> writes:
On Monday, 1 November 2021 at 16:16:12 UTC, Arsium wrote:
 On Monday, 1 November 2021 at 16:02:20 UTC, Paul Backus wrote:
 On Monday, 1 November 2021 at 16:00:05 UTC, Arsium wrote:
 Hello,

 Currently, I'm working to implement myself WinAPI functions. 
 However, I could not find anything matching with  : __cpuid 
 like : https://gist.github.com/boxmein/7d8e5fae7febafc5851e

 Any idea ?
Not sure if it's exactly the same, but there is [`core.cpuid`][1]. [1]: https://druntime.dpldocs.info/core.cpuid.html
Oh thx my bad I did not see it!
if you want even more cpuid details there is also https://github.com/dd86k/ddcpuid/ https://code.dlang.org/packages/ddcpuid
Nov 02 2021