api.h 441 B

123456789101112131415161718192021222324252627282930
  1. #ifndef ANDROID_UTILS_API_H
  2. #define ANDROID_UTILS_API_H
  3. #include <stdint.h>
  4. typedef enum CpuFamily_e {
  5. UNKNOWN = 0,
  6. ARM,
  7. X86
  8. }
  9. CpuFamily_t;
  10. typedef enum CpuFeatures_e {
  11. ARMv7 = 1,
  12. VFPv3 = 2,
  13. NEON = 4
  14. }
  15. CpuFeatures_t;
  16. class AndroidUtils
  17. {
  18. public:
  19. AndroidUtils() {};
  20. virtual ~AndroidUtils() {};
  21. static uint64_t getCpuFamily();
  22. static uint64_t getCpuFeatures();
  23. };
  24. #endif /* ANDROID_UTILS_API_H */