Skip to content

Commit

Permalink
Use constants
Browse files Browse the repository at this point in the history
  • Loading branch information
hmartinez82 committed Nov 16, 2023
1 parent 298b166 commit 8df80b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SystemInformer/syssccpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,10 @@ PPH_STRINGREF PhGetHybridProcessorType(
return NULL;
}
#else

#define ARM_CORETYPE_LITTLE 0
#define ARM_CORETYPE_BIG 1

_Success_(return)
BOOLEAN PhInitializeHybridProcessorTypeCache(
_Out_ PPH_LIST *HybridProcessorTypeList
Expand Down Expand Up @@ -1884,12 +1888,12 @@ PPH_STRINGREF PhGetHybridProcessorType(

switch (PtrToUlong(hybridProcessorTypeList->Items[ProcessorIndex]))
{
case 0:
case ARM_CORETYPE_LITTLE:
{
static PH_STRINGREF hybridECoreTypeSr = PH_STRINGREF_INIT(L"LITTLE Core");
return &hybridECoreTypeSr;
}
case 1:
case ARM_CORETYPE_BIG:
{
static PH_STRINGREF hybridPCoreTypeSr = PH_STRINGREF_INIT(L"big Core");
return &hybridPCoreTypeSr;
Expand Down

0 comments on commit 8df80b6

Please sign in to comment.