FreeRDP
cpu-features.h File Reference
#include <sys/cdefs.h>
#include <stdint.h>
This graph shows which files directly or indirectly include this file:

Enumerations

enum  AndroidCpuFamily {
  ANDROID_CPU_FAMILY_UNKNOWN = 0 , ANDROID_CPU_FAMILY_ARM , ANDROID_CPU_FAMILY_X86 , ANDROID_CPU_FAMILY_MIPS ,
  ANDROID_CPU_FAMILY_ARM64 , ANDROID_CPU_FAMILY_X86_64 , ANDROID_CPU_FAMILY_MIPS64 , ANDROID_CPU_FAMILY_MAX
}
 
enum  {
  ANDROID_CPU_ARM_FEATURE_ARMv7 = (1 << 0) , ANDROID_CPU_ARM_FEATURE_VFPv3 = (1 << 1) , ANDROID_CPU_ARM_FEATURE_NEON = (1 << 2) , ANDROID_CPU_ARM_FEATURE_LDREX_STREX = (1 << 3) ,
  ANDROID_CPU_ARM_FEATURE_VFPv2 = (1 << 4) , ANDROID_CPU_ARM_FEATURE_VFP_D32 = (1 << 5) , ANDROID_CPU_ARM_FEATURE_VFP_FP16 = (1 << 6) , ANDROID_CPU_ARM_FEATURE_VFP_FMA = (1 << 7) ,
  ANDROID_CPU_ARM_FEATURE_NEON_FMA = (1 << 8) , ANDROID_CPU_ARM_FEATURE_IDIV_ARM = (1 << 9) , ANDROID_CPU_ARM_FEATURE_IDIV_THUMB2 = (1 << 10) , ANDROID_CPU_ARM_FEATURE_iWMMXt = (1 << 11) ,
  ANDROID_CPU_ARM_FEATURE_AES = (1 << 12) , ANDROID_CPU_ARM_FEATURE_PMULL = (1 << 13) , ANDROID_CPU_ARM_FEATURE_SHA1 = (1 << 14) , ANDROID_CPU_ARM_FEATURE_SHA2 = (1 << 15) ,
  ANDROID_CPU_ARM_FEATURE_CRC32 = (1 << 16)
}
 
enum  {
  ANDROID_CPU_ARM64_FEATURE_FP = (1 << 0) , ANDROID_CPU_ARM64_FEATURE_ASIMD = (1 << 1) , ANDROID_CPU_ARM64_FEATURE_AES = (1 << 2) , ANDROID_CPU_ARM64_FEATURE_PMULL = (1 << 3) ,
  ANDROID_CPU_ARM64_FEATURE_SHA1 = (1 << 4) , ANDROID_CPU_ARM64_FEATURE_SHA2 = (1 << 5) , ANDROID_CPU_ARM64_FEATURE_CRC32 = (1 << 6)
}
 
enum  {
  ANDROID_CPU_X86_FEATURE_SSSE3 = (1 << 0) , ANDROID_CPU_X86_FEATURE_POPCNT = (1 << 1) , ANDROID_CPU_X86_FEATURE_MOVBE = (1 << 2) , ANDROID_CPU_X86_FEATURE_SSE4_1 = (1 << 3) ,
  ANDROID_CPU_X86_FEATURE_SSE4_2 = (1 << 4) , ANDROID_CPU_X86_FEATURE_AES_NI = (1 << 5) , ANDROID_CPU_X86_FEATURE_AVX = (1 << 6) , ANDROID_CPU_X86_FEATURE_RDRAND = (1 << 7) ,
  ANDROID_CPU_X86_FEATURE_AVX2 = (1 << 8) , ANDROID_CPU_X86_FEATURE_SHA_NI = (1 << 9)
}
 
enum  { ANDROID_CPU_MIPS_FEATURE_R6 = (1 << 0) , ANDROID_CPU_MIPS_FEATURE_MSA = (1 << 1) }
 

Functions

AndroidCpuFamily android_getCpuFamily (void)
 
uint64_t android_getCpuFeatures (void)
 
int android_getCpuCount (void)
 
int android_setCpu (int cpu_count, uint64_t cpu_features)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ANDROID_CPU_ARM_FEATURE_ARMv7 
ANDROID_CPU_ARM_FEATURE_VFPv3 
ANDROID_CPU_ARM_FEATURE_NEON 
ANDROID_CPU_ARM_FEATURE_LDREX_STREX 
ANDROID_CPU_ARM_FEATURE_VFPv2 
ANDROID_CPU_ARM_FEATURE_VFP_D32 
ANDROID_CPU_ARM_FEATURE_VFP_FP16 
ANDROID_CPU_ARM_FEATURE_VFP_FMA 
ANDROID_CPU_ARM_FEATURE_NEON_FMA 
ANDROID_CPU_ARM_FEATURE_IDIV_ARM 
ANDROID_CPU_ARM_FEATURE_IDIV_THUMB2 
ANDROID_CPU_ARM_FEATURE_iWMMXt 
ANDROID_CPU_ARM_FEATURE_AES 
ANDROID_CPU_ARM_FEATURE_PMULL 
ANDROID_CPU_ARM_FEATURE_SHA1 
ANDROID_CPU_ARM_FEATURE_SHA2 
ANDROID_CPU_ARM_FEATURE_CRC32 

◆ anonymous enum

anonymous enum
Enumerator
ANDROID_CPU_ARM64_FEATURE_FP 
ANDROID_CPU_ARM64_FEATURE_ASIMD 
ANDROID_CPU_ARM64_FEATURE_AES 
ANDROID_CPU_ARM64_FEATURE_PMULL 
ANDROID_CPU_ARM64_FEATURE_SHA1 
ANDROID_CPU_ARM64_FEATURE_SHA2 
ANDROID_CPU_ARM64_FEATURE_CRC32 

◆ anonymous enum

anonymous enum
Enumerator
ANDROID_CPU_X86_FEATURE_SSSE3 
ANDROID_CPU_X86_FEATURE_POPCNT 
ANDROID_CPU_X86_FEATURE_MOVBE 
ANDROID_CPU_X86_FEATURE_SSE4_1 
ANDROID_CPU_X86_FEATURE_SSE4_2 
ANDROID_CPU_X86_FEATURE_AES_NI 
ANDROID_CPU_X86_FEATURE_AVX 
ANDROID_CPU_X86_FEATURE_RDRAND 
ANDROID_CPU_X86_FEATURE_AVX2 
ANDROID_CPU_X86_FEATURE_SHA_NI 

◆ anonymous enum

anonymous enum
Enumerator
ANDROID_CPU_MIPS_FEATURE_R6 
ANDROID_CPU_MIPS_FEATURE_MSA 

◆ AndroidCpuFamily

Enumerator
ANDROID_CPU_FAMILY_UNKNOWN 
ANDROID_CPU_FAMILY_ARM 
ANDROID_CPU_FAMILY_X86 
ANDROID_CPU_FAMILY_MIPS 
ANDROID_CPU_FAMILY_ARM64 
ANDROID_CPU_FAMILY_X86_64 
ANDROID_CPU_FAMILY_MIPS64 
ANDROID_CPU_FAMILY_MAX 

Function Documentation

◆ android_getCpuCount()

int android_getCpuCount ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ android_getCpuFamily()

AndroidCpuFamily android_getCpuFamily ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ android_getCpuFeatures()

uint64_t android_getCpuFeatures ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ android_setCpu()

int android_setCpu ( int  cpu_count,
uint64_t  cpu_features 
)
Here is the call graph for this function: