George Steed ba0bba5b2b [AArch64] Use getauxval(AT_HWCAP{,2}) for feature detection
This has the advantage of also working under emulation where
faking /proc/cpuinfo is not supported.

For the Chromium sandbox, getauxval is supported since API version 18.
The minimum supported API version at time of writing is 21 so we should
be able to use getauxval unconditionally. On the off-chance the call
fails it will return 0 and we will correctly fall-back to using only
Neon.

Change-Id: Ibbaa9caec1915ac0725c42d6cd2abc7ce19786c7
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5453620
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
2024-04-19 06:37:04 +00:00
..
arm_v7.txt Neon instructions detect without using NDK so it will work within Android, and on other linux arm based platforms and builds 2012-01-26 02:14:52 +00:00
mips_loongson2k.txt Add unittest TestLinuxMipsMsaMmi. 2020-04-16 19:51:27 +00:00
mips_loongson3.txt Add unittest TestLinuxMipsMsaMmi. 2020-04-16 19:51:27 +00:00
mips_loongson_mmi.txt Add unittest TestLinuxMipsMsaMmi. 2020-04-16 19:51:27 +00:00
mips_msa.txt Add unittest TestLinuxMipsMsaMmi. 2020-04-16 19:51:27 +00:00
mips.txt Add unittest TestLinuxMipsMsaMmi. 2020-04-16 19:51:27 +00:00
riscv64_rvv_zvfh.txt Add riscv cpu info detection. 2023-04-06 15:58:29 +00:00
riscv64_rvv.txt Add riscv cpu info detection. 2023-04-06 15:58:29 +00:00
riscv64.txt Add riscv cpu info detection. 2023-04-06 15:58:29 +00:00
tegra3.txt Neon instructions detect without using NDK so it will work within Android, and on other linux arm based platforms and builds 2012-01-26 02:14:52 +00:00
test0.jpg MJPGToNV21 2018-10-24 22:01:13 +00:00
test1.jpg MJPGToNV21 2018-10-24 22:01:13 +00:00
test2.jpg MJPGToNV21 2018-10-24 22:01:13 +00:00
test3.jpg MJPGToNV21 2018-10-24 22:01:13 +00:00
test4.jpg MJPGToNV21 2018-10-24 22:01:13 +00:00