mirror of
https://github.com/google/cpu_features.git
synced 2025-04-28 15:33:37 +02:00

* First implementation of ndk_compat * Restrict building of linux_based_hardware_detection to UNIX * Fix variable declaration and printf formatting * Restrict ndk compat to UNIX style systems * Restrict cpu_mask index to 32 * Fix values display in ndk-compat-test * Addressing comments
12 lines
364 B
C
12 lines
364 B
C
#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__
|
|
}
|