Files
Timo Kreuzer ed51a5d1e2 [RTL][NTDLL] Implement processor related NT6+ functions
Implements RtlGetCurrentProcessorNumberEx, RtlIsProcessorFeaturePresent
2026-07-01 21:45:34 +00:00

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);
}