Rihen Rihen NkentseuDocumentation

NkCPUFeatures.h

Include
#include "NKPlatform/NkCPUFeatures.h"
Namespace
nkentseu::platform
Link (Jenga)
nkentseudependson(["NKPlatform"])

Types

CacheInfoInformation about the CPU cache hierarchy
CPUTopologyInformation about the processor topology
SIMDFeaturesDetection of the available SIMD extensions
ExtendedFeaturesAdditional CPU features (security, memory, performance)
CPUFeaturesComplete structure of the detected CPU features

Functions · 10

NkGetCPUFeaturesGets the CPUFeatures instance through the Nk alias
NkHasSSE2Checks SSE2 support at run time
NkHasAVXChecks AVX support at run time
NkHasAVX2Checks AVX2 support at run time
NkHasAVX512Checks AVX-512 support at run time
NkHasNEONChecks NEON support at run time
NkHasFMAChecks FMA support at run time
NkGetCacheLineSizeGets the cache line size in bytes
NkGetPhysicalCoreCountGets the number of physical cores
NkGetLogicalCoreCountGets the number of logical cores (threads)

Aliases · 5

NkCacheInfoAlias for CacheInfo (Nk API compatibility)
NkCPUTopologyAlias for CPUTopology (Nk API compatibility)
NkSIMDFeaturesAlias for SIMDFeatures (Nk API compatibility)
NkExtendedFeaturesAlias for ExtendedFeatures (Nk API compatibility)
NkCPUFeaturesAlias for CPUFeatures (Nk API compatibility)

Member details

NkCacheInfo

#
alias
using NkCacheInfo = CacheInfo

Alias for CacheInfo (Nk API compatibility)

NkCPUTopology

#
alias
using NkCPUTopology = CPUTopology

Alias for CPUTopology (Nk API compatibility)

NkSIMDFeatures

#
alias
using NkSIMDFeatures = SIMDFeatures

Alias for SIMDFeatures (Nk API compatibility)

NkExtendedFeatures

#
alias
using NkExtendedFeatures = ExtendedFeatures

Alias for ExtendedFeatures (Nk API compatibility)

NkCPUFeatures

#
alias
using NkCPUFeatures = CPUFeatures

Alias for CPUFeatures (Nk API compatibility)

NkGetCPUFeatures

#
function
const NkCPUFeatures &NkGetCPUFeatures()

Gets the CPUFeatures instance through the Nk alias

NkHasSSE2

#
function
bool NkHasSSE2()

Checks SSE2 support at run time

NkHasAVX

#
function
bool NkHasAVX()

Checks AVX support at run time

NkHasAVX2

#
function
bool NkHasAVX2()

Checks AVX2 support at run time

NkHasAVX512

#
function
bool NkHasAVX512()

Checks AVX-512 support at run time

NkHasNEON

#
function
bool NkHasNEON()

Checks NEON support at run time

NkHasFMA

#
function
bool NkHasFMA()

Checks FMA support at run time

NkGetCacheLineSize

#
function
int32_t NkGetCacheLineSize()

Gets the cache line size in bytes

NkGetPhysicalCoreCount

#
function
int32_t NkGetPhysicalCoreCount()

Gets the number of physical cores

NkGetLogicalCoreCount

#
function
int32_t NkGetLogicalCoreCount()

Gets the number of logical cores (threads)