FreeRDP
cpu-features.c File Reference
#include "cpu-features.h"
#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/system_properties.h>
#include <unistd.h>
#include <winpr/wtypes.h>

Macros

#define D(...)
 

Functions

static int get_file_size (const char *pathname)
 
static int read_file (const char *pathname, char *buffer, size_t buffsize)
 
static const char * parse_number (const char *input, const char *limit, int base, int *result)
 
static const char * parse_decimal (const char *input, const char *limit, int *result)
 
static __inline__ void cpulist_init (CpuList *list)
 
static __inline__ void cpulist_and (CpuList *list1, CpuList *list2)
 
static __inline__ void cpulist_set (CpuList *list, int index)
 
static __inline__ int cpulist_count (CpuList *list)
 
static void cpulist_parse (CpuList *list, const char *line, int line_len)
 
static void cpulist_read_from (CpuList *list, const char *filename)
 
static int get_cpu_count (void)
 
static void android_cpuInitFamily (void)
 
static void android_cpuInit (void)
 
AndroidCpuFamily android_getCpuFamily (void)
 
uint64_t android_getCpuFeatures (void)
 
int android_getCpuCount (void)
 
static void android_cpuInitDummy (void)
 
int android_setCpu (int cpu_count, uint64_t cpu_features)
 

Variables

static pthread_once_t g_once
 
static int g_inited
 
static AndroidCpuFamily g_cpuFamily
 
static uint64_t g_cpuFeatures
 
static int g_cpuCount
 
static const int android_cpufeatures_debug = 0
 

Macro Definition Documentation

#define D (   ...)
Value:
do { \
printf(__VA_ARGS__); fflush(stdout); \
} \
} while (0)
static const int android_cpufeatures_debug
Definition: cpu-features.c:86
winpr freerdp if(WITH_DEBUG_SYMBOLS AND MSVC AND NOT BUILTIN_CHANNELS AND BUILD_SHARED_LIBS) install(FILES $
Definition: channels/drive/client/CMakeLists.txt:32

Function Documentation

static void android_cpuInit ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void android_cpuInitDummy ( void  )
static

Here is the caller graph for this function:

static void android_cpuInitFamily ( void  )
static

Here is the caller graph for this function:

int android_getCpuCount ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

AndroidCpuFamily android_getCpuFamily ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t android_getCpuFeatures ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

int android_setCpu ( int  cpu_count,
uint64_t  cpu_features 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static __inline__ void cpulist_and ( CpuList *  list1,
CpuList *  list2 
)
static

Here is the caller graph for this function:

static __inline__ int cpulist_count ( CpuList *  list)
static

Here is the caller graph for this function:

static __inline__ void cpulist_init ( CpuList *  list)
static

Here is the caller graph for this function:

static void cpulist_parse ( CpuList *  list,
const char *  line,
int  line_len 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void cpulist_read_from ( CpuList *  list,
const char *  filename 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static __inline__ void cpulist_set ( CpuList *  list,
int  index 
)
static

Here is the caller graph for this function:

static int get_cpu_count ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int get_file_size ( const char *  pathname)
static

Here is the caller graph for this function:

static const char* parse_decimal ( const char *  input,
const char *  limit,
int *  result 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static const char* parse_number ( const char *  input,
const char *  limit,
int  base,
int *  result 
)
static

Here is the caller graph for this function:

static int read_file ( const char *  pathname,
char *  buffer,
size_t  buffsize 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const int android_cpufeatures_debug = 0
static
int g_cpuCount
static
AndroidCpuFamily g_cpuFamily
static
uint64_t g_cpuFeatures
static
int g_inited
static
pthread_once_t g_once
static