From: Janne Grunau Date: Thu, 18 Sep 2014 20:15:30 +0000 (+0200) Subject: aarch64: add support for HW_CAP based neon runtime detection X-Git-Tag: v0.91~163^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=987d54b7cd9d35e58f642e976b6582c8ca7377d0;p=ceph.git aarch64: add support for HW_CAP based neon runtime detection --- diff --git a/src/arch/neon.c b/src/arch/neon.c index 6dad7e6e13eb..f059080b96b8 100644 --- a/src/arch/neon.c +++ b/src/arch/neon.c @@ -10,7 +10,7 @@ int ceph_arch_neon = 0; #include #include // ElfW macro -#if __arm__ +#if __arm__ || __aarch64__ #include #endif // __arm__ @@ -45,6 +45,8 @@ int ceph_arch_neon_probe(void) { #if __arm__ && __linux__ ceph_arch_neon = (get_hwcap() & HWCAP_NEON) == HWCAP_NEON; +#elif __aarch64__ && __linux__ + ceph_arch_neon = (get_hwcap() & HWCAP_ASIMD) == HWCAP_ASIMD; #else if (0) get_hwcap(); // make compiler shut up