hexo/node_modules/cpu-features/deps/cpu_features/ndk_compat/ndk-compat-test.c

13 lines
365 B
C
Raw Normal View History

2023-09-30 15:31:08 +08:00
#include <stdio.h>
#include "cpu-features.h"
int main() {
printf("android_getCpuFamily()=%d\n", android_getCpuFamily());
printf("android_getCpuFeatures()=0x%08llx\n", android_getCpuFeatures());
printf("android_getCpuCount()=%d\n", android_getCpuCount());
#ifdef __arm__
printf("android_getCpuIdArm()=0x%04x\n", android_getCpuIdArm());
#endif //__arm__
}