Search code examples
androidandroid-ndkarmneon

Runtime CPU type detection for Android on ARM


What is the simplest method to determine CPU type from within a running C application? I am interested in determining how many cores current CPU has and whether it has a NEON unit. One simple solution could be to check cpuinfo flags in /proc but I am not sure if it's a fast and reliable method.


Solution

  • You can check neon support using this doc. To get core count read this thread and take a look at this page.