mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
46 lines
960 B
C
46 lines
960 B
C
/*
|
|
* PROJECT: ReactOS runtime library (RTL)
|
|
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
|
* PURPOSE: Implementation of processor related routines
|
|
* COPYRIGHT: Copyright 2026 Timo Kreuzer <[email protected]>
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include <rtl.h>
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
|
|
BOOLEAN
|
|
NTAPI
|
|
RtlIsProcessorFeaturePresent(
|
|
_In_ ULONG ProcessorFeature)
|
|
{
|
|
if (ProcessorFeature >= RTL_NUMBER_OF(SharedUserData->ProcessorFeatures))
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
return SharedUserData->ProcessorFeatures[ProcessorFeature] != 0;
|
|
}
|
|
|
|
ULONG
|
|
NTAPI
|
|
RtlGetCurrentProcessorNumber(
|
|
VOID)
|
|
{
|
|
return NtGetCurrentProcessorNumber();
|
|
}
|
|
|
|
VOID
|
|
NTAPI
|
|
RtlGetCurrentProcessorNumberEx(
|
|
_Out_ PPROCESSOR_NUMBER ProcessorNumber)
|
|
{
|
|
NtGetCurrentProcessorNumberEx(ProcessorNumber);
|
|
}
|