Thursday, 15 September 2011

How to check the existence of NEON on arm? -



How to check the existence of NEON on arm? -

how determine whether neon engine exists on given arm processor? status/flag register can queried such purpose?

i believe unixsmurf's answer you'll if using os privileged kernel. general purpose feature detection, seems arm has made requirement os, , must utilize os api it.

on android ndk utilize #include <cpu-features.h> android_getcpufeatures() & android_cpu_arm_feature_neon on linux, if available utilize #include <sys/auxv.h> , #include <asm/hwcap.h> getauxval(at_hwcap) & hwcap_neon. on ios, i'm not sure there dynamic call, methodology seems build app targeting neon, create sure app flagged require neon install on devices back upwards it. of course of study should utilize pre-defined preprocessor flag __arm_neon__ create sure in order @ compile time. on whatever microsoft or if using other rtos... don't know...

actually you'll see lot of android implementations parse /proc/cpuinfo in order implement android_getcpufeatures().... heh. still seems getting improved , newest versions utilize getauxval method.

arm neon

No comments:

Post a Comment