mirror of
				https://github.com/google/cpu_features.git
				synced 2025-11-03 22:40:17 +01:00 
			
		
		
		
	* [NFC] clang-format codebase * revert to 80 char columns at the price of uglier table init * Specifically disabling clang-format for table initialization
		
			
				
	
	
		
			13 lines
		
	
	
		
			365 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			365 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__
 | 
						|
}
 |