FreeRDP
|
#include "cpu-features.h"
#include <dlfcn.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/system_properties.h>
#include <unistd.h>
#include <winpr/wtypes.h>
#include <winpr/debug.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 |
#define D | ( | ... | ) |
|
static |
|
static |
|
static |
int android_getCpuCount | ( | void | ) |
AndroidCpuFamily android_getCpuFamily | ( | void | ) |
uint64_t android_getCpuFeatures | ( | void | ) |
int android_setCpu | ( | int | cpu_count, |
uint64_t | cpu_features | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |