macos platform fixes for intel macs

This commit is contained in:
Jeff Hutchinson 2021-09-25 22:39:40 -04:00
parent 433d32f237
commit 7cb306b65a
6 changed files with 132 additions and 885 deletions

View file

@ -29,13 +29,10 @@ namespace CPUInfo
{
enum EConfig
{
CONFIG_UserConfigIssue,
CONFIG_SingleCoreHTEnabled,
CONFIG_SingleCoreHTDisabled,
CONFIG_SingleCoreAndHTNotCapable,
CONFIG_MultiCoreAndHTNotCapable,
CONFIG_MultiCoreAndHTEnabled,
CONFIG_MultiCoreAndHTDisabled,
};
inline bool isMultiCore( EConfig config )
@ -44,7 +41,6 @@ namespace CPUInfo
{
case CONFIG_MultiCoreAndHTNotCapable:
case CONFIG_MultiCoreAndHTEnabled:
case CONFIG_MultiCoreAndHTDisabled:
return true;
default:
@ -65,11 +61,10 @@ namespace CPUInfo
}
}
EConfig CPUCount( U32& totalAvailableLogical,
U32& totalAvailableCores,
U32& numPhysical );
EConfig CPUCount( U32& totalAvailableLogical, U32& totalAvailableCores );
} // namespace CPUInfo
void SetProcessoInfo(Platform::SystemInfo_struct::Processor& pInfo, char* vendor, char* brand);
#endif // _TORQUE_PLATFORM_PLATFORMCOUNT_H_