[NDK] Add Affinity helper inline functions

This commit is contained in:
Timo Kreuzer
2023-12-08 19:28:57 +02:00
parent 57e7f0b321
commit d87b45bee7
3 changed files with 47 additions and 10 deletions
-9
View File
@@ -7,15 +7,6 @@
#pragma once
#define AFFINITY_MASK(Id) ((KAFFINITY)1 << (Id))
/* Helper to find the lowest CPU in a KAFFINITY */
#ifdef _WIN64
#define BitScanForwardAffinity BitScanForward64
#else
#define BitScanForwardAffinity BitScanForward
#endif
/* This table is filled for each physical processor on system */
typedef struct _PROCESSOR_IDENTITY
{