Vector Optimized Library of Kernels  2.5.0
Architecture-tuned implementations of math kernels
hwcaps.c File Reference
#include "internal/hwcaps.h"
#include <stdlib.h>
#include <string.h>
#include "cpu_features_macros.h"
#include "internal/filesystem.h"
#include "internal/string_view.h"
#include <stdio.h>

Macros

#define D(...)
 
#define AT_HWCAP   16
 
#define AT_HWCAP2   26
 
#define AT_PLATFORM   15
 
#define AT_BASE_PLATFORM   24
 

Functions

static bool IsSet (const uint32_t mask, const uint32_t value)
 
bool CpuFeatures_IsHwCapsSet (const HardwareCapabilities hwcaps_mask, const HardwareCapabilities hwcaps)
 
static uint32_t GetElfHwcapFromProcSelfAuxv (uint32_t hwcap_type)
 
static unsigned long GetHardwareCapabilitiesFor (uint32_t type)
 
HardwareCapabilities CpuFeatures_GetHardwareCapabilities (void)
 
PlatformType CpuFeatures_GetPlatformType (void)
 

Variables

PlatformType kEmptyPlatformType
 

Macro Definition Documentation

◆ AT_BASE_PLATFORM

#define AT_BASE_PLATFORM   24

◆ AT_HWCAP

#define AT_HWCAP   16

◆ AT_HWCAP2

#define AT_HWCAP2   26

◆ AT_PLATFORM

#define AT_PLATFORM   15

◆ D

#define D (   ...)
Value:
do { \
printf(__VA_ARGS__); \
fflush(stdout); \
} while (0)

Function Documentation

◆ CpuFeatures_GetHardwareCapabilities()

HardwareCapabilities CpuFeatures_GetHardwareCapabilities ( void  )

◆ CpuFeatures_GetPlatformType()

PlatformType CpuFeatures_GetPlatformType ( void  )

◆ CpuFeatures_IsHwCapsSet()

bool CpuFeatures_IsHwCapsSet ( const HardwareCapabilities  hwcaps_mask,
const HardwareCapabilities  hwcaps 
)

◆ GetElfHwcapFromProcSelfAuxv()

static uint32_t GetElfHwcapFromProcSelfAuxv ( uint32_t  hwcap_type)
static

◆ GetHardwareCapabilitiesFor()

static unsigned long GetHardwareCapabilitiesFor ( uint32_t  type)
static

◆ IsSet()

static bool IsSet ( const uint32_t  mask,
const uint32_t  value 
)
static

Variable Documentation

◆ kEmptyPlatformType

PlatformType kEmptyPlatformType