xref: /aosp_15_r20/external/cpu_features/ndk_compat/ndk-compat-test.c (revision eca53ba6d2e951e174b64682eaf56a36b8204c89)
1*eca53ba6SRoland Levillain #include <stdio.h>
2*eca53ba6SRoland Levillain 
3*eca53ba6SRoland Levillain #include "cpu-features.h"
4*eca53ba6SRoland Levillain 
main()5*eca53ba6SRoland Levillain int main() {
6*eca53ba6SRoland Levillain   printf("android_getCpuFamily()=%d\n", android_getCpuFamily());
7*eca53ba6SRoland Levillain   printf("android_getCpuFeatures()=0x%08llx\n", android_getCpuFeatures());
8*eca53ba6SRoland Levillain   printf("android_getCpuCount()=%d\n", android_getCpuCount());
9*eca53ba6SRoland Levillain #ifdef __arm__
10*eca53ba6SRoland Levillain   printf("android_getCpuIdArm()=0x%04x\n", android_getCpuIdArm());
11*eca53ba6SRoland Levillain #endif  //__arm__
12*eca53ba6SRoland Levillain }
13