summaryrefslogtreecommitdiffstats
path: root/android-utils/api.h
blob: e8c4f126172823f2a015e7858e21c3cb9b58fed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef ANDROID_UTILS_API_H
#define ANDROID_UTILS_API_H

#include <stdint.h>

typedef enum CpuFamily_e {
    UNKNOWN = 0,
    ARM,
    X86
}
CpuFamily_t;

typedef enum CpuFeatures_e {
    ARMv7 = 1,
    VFPv3 = 2,
    NEON = 4
}
CpuFeatures_t;

class AndroidUtils
{
public:
    AndroidUtils() {};
    virtual ~AndroidUtils() {};

    static uint64_t getCpuFamily();
    static uint64_t getCpuFeatures();
};

#endif /* ANDROID_UTILS_API_H */
OpenPOWER on IntegriCloud