Parse /proc/cpuinfo for ARM HW features
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Mon, 30 Dec 2013 13:10:13 +0000 (15:10 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Mon, 30 Dec 2013 13:10:13 +0000 (15:10 +0200)
commita05be441d8cd89b90d8d58e3a343a436dae377d0
treed51122c3ef8c2987ba044b97e1ba145bdf5932f9
parentbbcb12187afb1756cb27296166b57fa19ee45d4d
Parse /proc/cpuinfo for ARM HW features

* src/hwf-arm.c [__linux__] (HAS_PROC_CPUINFO)
(detect_arm_proc_cpuinfo): New.
(_gcry_hwf_detect_arm) [HAS_PROC_CPUINFO]: Check '/proc/cpuinfo' for
HW features.
--

Some Linux platforms (read: Android) block read access to '/proc/self/auxv',
which prevents NEON HW detection. Patch adds alternative check which parses
'/proc/cpuinfo' which should be accessable by Android applications.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
src/hwf-arm.c