Nebula
Loading...
Searching...
No Matches
cpu.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "core/rttimacros.h"
13namespace System
14{
15class Cpu
16{
17public:
18 enum CoreId : uint32_t
19 {
20 Core0 = 0x1,
21 Core1 = 0x2,
22 Core2 = 0x4,
23 Core3 = 0x8, // << Ordinary quad-core
24 Core4 = 0x10,
25 Core5 = 0x20, // << Intel extreme level
26 Core6 = 0x40,
27 Core7 = 0x80,
28 Core8 = 0x100,
29 Core9 = 0x200,
30 Core10 = 0x400,
31 Core11 = 0x800,
32 Core12 = 0x1000, // << Zen 3
33 Core13 = 0x2000,
34 Core14 = 0x4000,
35 Core15 = 0x8000,
36 Core16 = 0x10000,
37 Core17 = 0x20000,
38 Core18 = 0x40000,
39 Core19 = 0x80000,
40 Core20 = 0x100000,
41 Core21 = 0x200000,
42 Core22 = 0x400000,
43 Core23 = 0x800000,
44 Core24 = 0x1000000,
45 Core25 = 0x2000000,
46 Core26 = 0x4000000,
47 Core27 = 0x8000000,
48 Core28 = 0x10000000,
49 Core29 = 0x20000000,
50 Core30 = 0x40000000,
51 Core31 = 0x80000000, // << Threadripper gen 1 level
52 All = (Core31 << 1) - 1
53 };
54};
55
57}
58//------------------------------------------------------------------------------
59
Provides information about the system's CPU(s).
Definition cpu.h:16
CoreId
Definition cpu.h:19
@ Core18
Definition cpu.h:38
@ Core21
Definition cpu.h:41
@ Core22
Definition cpu.h:42
@ Core25
Definition cpu.h:45
@ Core23
Definition cpu.h:43
@ Core3
Definition cpu.h:23
@ Core30
Definition cpu.h:50
@ Core12
Definition cpu.h:32
@ Core28
Definition cpu.h:48
@ All
Definition cpu.h:52
@ Core31
Definition cpu.h:51
@ Core26
Definition cpu.h:46
@ Core24
Definition cpu.h:44
@ Core17
Definition cpu.h:37
@ Core10
Definition cpu.h:30
@ Core13
Definition cpu.h:33
@ Core1
Definition cpu.h:21
@ Core11
Definition cpu.h:31
@ Core14
Definition cpu.h:34
@ Core5
Definition cpu.h:25
@ Core2
Definition cpu.h:22
@ Core29
Definition cpu.h:49
@ Core8
Definition cpu.h:28
@ Core6
Definition cpu.h:26
@ Core4
Definition cpu.h:24
@ Core9
Definition cpu.h:29
@ Core15
Definition cpu.h:35
@ Core19
Definition cpu.h:39
@ Core7
Definition cpu.h:27
@ Core27
Definition cpu.h:47
@ Core20
Definition cpu.h:40
@ Core0
Definition cpu.h:20
@ Core16
Definition cpu.h:36
Definition osxsysfunc.h:15
This defines the macros for Nebula's RTTI mechanism (__DeclareClass, __ImplementClass,...
#define __ImplementEnumBitOperators(type)
Neat macro to make enums act as bit flags, be able to check if bits are set, and convert to integers.
Definition rttimacros.h:376