Nebula
Loading...
Searching...
No Matches
cpu.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
#include "
core/rttimacros.h
"
13
namespace
System
14
{
15
class
Cpu
16
{
17
public
:
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
56
__ImplementEnumBitOperators
(
System::Cpu::CoreId
);
57
}
58
//------------------------------------------------------------------------------
59
System::Cpu
Provides information about the system's CPU(s).
Definition
cpu.h:16
System::Cpu::CoreId
CoreId
Definition
cpu.h:19
System::Cpu::Core18
@ Core18
Definition
cpu.h:38
System::Cpu::Core21
@ Core21
Definition
cpu.h:41
System::Cpu::Core22
@ Core22
Definition
cpu.h:42
System::Cpu::Core25
@ Core25
Definition
cpu.h:45
System::Cpu::Core23
@ Core23
Definition
cpu.h:43
System::Cpu::Core3
@ Core3
Definition
cpu.h:23
System::Cpu::Core30
@ Core30
Definition
cpu.h:50
System::Cpu::Core12
@ Core12
Definition
cpu.h:32
System::Cpu::Core28
@ Core28
Definition
cpu.h:48
System::Cpu::All
@ All
Definition
cpu.h:52
System::Cpu::Core31
@ Core31
Definition
cpu.h:51
System::Cpu::Core26
@ Core26
Definition
cpu.h:46
System::Cpu::Core24
@ Core24
Definition
cpu.h:44
System::Cpu::Core17
@ Core17
Definition
cpu.h:37
System::Cpu::Core10
@ Core10
Definition
cpu.h:30
System::Cpu::Core13
@ Core13
Definition
cpu.h:33
System::Cpu::Core1
@ Core1
Definition
cpu.h:21
System::Cpu::Core11
@ Core11
Definition
cpu.h:31
System::Cpu::Core14
@ Core14
Definition
cpu.h:34
System::Cpu::Core5
@ Core5
Definition
cpu.h:25
System::Cpu::Core2
@ Core2
Definition
cpu.h:22
System::Cpu::Core29
@ Core29
Definition
cpu.h:49
System::Cpu::Core8
@ Core8
Definition
cpu.h:28
System::Cpu::Core6
@ Core6
Definition
cpu.h:26
System::Cpu::Core4
@ Core4
Definition
cpu.h:24
System::Cpu::Core9
@ Core9
Definition
cpu.h:29
System::Cpu::Core15
@ Core15
Definition
cpu.h:35
System::Cpu::Core19
@ Core19
Definition
cpu.h:39
System::Cpu::Core7
@ Core7
Definition
cpu.h:27
System::Cpu::Core27
@ Core27
Definition
cpu.h:47
System::Cpu::Core20
@ Core20
Definition
cpu.h:40
System::Cpu::Core0
@ Core0
Definition
cpu.h:20
System::Cpu::Core16
@ Core16
Definition
cpu.h:36
System
Definition
osxsysfunc.h:15
__ImplementEnumBitOperators
#define __ImplementEnumBitOperators(type)
rttimacros.h
This defines the macros for Nebula's RTTI mechanism (__DeclareClass, __ImplementClass,...
code
foundation
system
cpu.h
Generated on Wed Nov 13 2024 21:37:27 for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.